@opusdns/api 0.53.0 → 0.55.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 +57 -51
- package/src/helpers/keys.ts +50 -1273
- package/src/helpers/requests.d.ts +53 -255
- package/src/helpers/responses.d.ts +56 -295
- package/src/helpers/schemas-arrays.d.ts +1 -15
- package/src/helpers/schemas.d.ts +32 -128
- package/src/openapi.yaml +56 -503
- package/src/schema.d.ts +62 -492
package/src/helpers/keys.ts
CHANGED
|
@@ -100,10 +100,6 @@ import { LaunchPhaseBase } from './schemas';
|
|
|
100
100
|
import { LaunchPhasesBase } from './schemas';
|
|
101
101
|
import { LocalPresenceBase } from './schemas';
|
|
102
102
|
import { Nameserver } from './schemas';
|
|
103
|
-
import { Notification } from './schemas';
|
|
104
|
-
import { NotificationCreate } from './schemas';
|
|
105
|
-
import { NotificationSummary } from './schemas';
|
|
106
|
-
import { NotificationUpdate } from './schemas';
|
|
107
103
|
import { Organization } from './schemas';
|
|
108
104
|
import { OrganizationAttribute } from './schemas';
|
|
109
105
|
import { OrganizationAttributeCreate } from './schemas';
|
|
@@ -121,6 +117,7 @@ import { PasswordUpdate } from './schemas';
|
|
|
121
117
|
import { Period } from './schemas';
|
|
122
118
|
import { PermissionSet } from './schemas';
|
|
123
119
|
import { PlanInfo } from './schemas';
|
|
120
|
+
import { PlanUpdate } from './schemas';
|
|
124
121
|
import { PremiumDomainsBase } from './schemas';
|
|
125
122
|
import { PriceInfo } from './schemas';
|
|
126
123
|
import { Problem } from './schemas';
|
|
@@ -143,8 +140,6 @@ import { User } from './schemas';
|
|
|
143
140
|
import { UserAgreementAcceptance } from './schemas';
|
|
144
141
|
import { UserAttributeBase } from './schemas';
|
|
145
142
|
import { UserCreate } from './schemas';
|
|
146
|
-
import { UserNotification } from './schemas';
|
|
147
|
-
import { UserNotificationSummary } from './schemas';
|
|
148
143
|
import { UserPasswordResetEmail } from './schemas';
|
|
149
144
|
import { UserToken } from './schemas';
|
|
150
145
|
import { UserUpdate } from './schemas';
|
|
@@ -10281,964 +10276,6 @@ export const KEYS_NAMESERVER = [
|
|
|
10281
10276
|
KEY_NAMESERVER_IP_ADDRESSES,
|
|
10282
10277
|
] as const satisfies (keyof Nameserver)[];
|
|
10283
10278
|
|
|
10284
|
-
/**
|
|
10285
|
-
* Author
|
|
10286
|
-
*
|
|
10287
|
-
* The user or system that created the notification
|
|
10288
|
-
*
|
|
10289
|
-
* @type {string}
|
|
10290
|
-
*
|
|
10291
|
-
*
|
|
10292
|
-
* @remarks
|
|
10293
|
-
* This key constant provides type-safe access to the `author` property of Notification objects.
|
|
10294
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10295
|
-
*
|
|
10296
|
-
* @example
|
|
10297
|
-
* ```typescript
|
|
10298
|
-
* // Direct property access
|
|
10299
|
-
* const value = notification[KEY_NOTIFICATION_AUTHOR];
|
|
10300
|
-
*
|
|
10301
|
-
* // Dynamic property access
|
|
10302
|
-
* const propertyName = KEY_NOTIFICATION_AUTHOR;
|
|
10303
|
-
* const value = notification[propertyName];
|
|
10304
|
-
* ```
|
|
10305
|
-
*
|
|
10306
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10307
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10308
|
-
*/
|
|
10309
|
-
export const KEY_NOTIFICATION_AUTHOR = 'author' as keyof Notification;
|
|
10310
|
-
/**
|
|
10311
|
-
* Created On
|
|
10312
|
-
*
|
|
10313
|
-
* The date/time the entry was created on
|
|
10314
|
-
*
|
|
10315
|
-
* @type {string}
|
|
10316
|
-
*
|
|
10317
|
-
*
|
|
10318
|
-
* @remarks
|
|
10319
|
-
* This key constant provides type-safe access to the `created_on` property of Notification objects.
|
|
10320
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10321
|
-
*
|
|
10322
|
-
* @example
|
|
10323
|
-
* ```typescript
|
|
10324
|
-
* // Direct property access
|
|
10325
|
-
* const value = notification[KEY_NOTIFICATION_CREATED_ON];
|
|
10326
|
-
*
|
|
10327
|
-
* // Dynamic property access
|
|
10328
|
-
* const propertyName = KEY_NOTIFICATION_CREATED_ON;
|
|
10329
|
-
* const value = notification[propertyName];
|
|
10330
|
-
* ```
|
|
10331
|
-
*
|
|
10332
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10333
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10334
|
-
*/
|
|
10335
|
-
export const KEY_NOTIFICATION_CREATED_ON = 'created_on' as keyof Notification;
|
|
10336
|
-
/**
|
|
10337
|
-
* Message
|
|
10338
|
-
*
|
|
10339
|
-
* The message content of the notification
|
|
10340
|
-
*
|
|
10341
|
-
* @type {string}
|
|
10342
|
-
*
|
|
10343
|
-
*
|
|
10344
|
-
* @remarks
|
|
10345
|
-
* This key constant provides type-safe access to the `message` property of Notification objects.
|
|
10346
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10347
|
-
*
|
|
10348
|
-
* @example
|
|
10349
|
-
* ```typescript
|
|
10350
|
-
* // Direct property access
|
|
10351
|
-
* const value = notification[KEY_NOTIFICATION_MESSAGE];
|
|
10352
|
-
*
|
|
10353
|
-
* // Dynamic property access
|
|
10354
|
-
* const propertyName = KEY_NOTIFICATION_MESSAGE;
|
|
10355
|
-
* const value = notification[propertyName];
|
|
10356
|
-
* ```
|
|
10357
|
-
*
|
|
10358
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10359
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10360
|
-
*/
|
|
10361
|
-
export const KEY_NOTIFICATION_MESSAGE = 'message' as keyof Notification;
|
|
10362
|
-
/**
|
|
10363
|
-
* Notification Id
|
|
10364
|
-
*
|
|
10365
|
-
*
|
|
10366
|
-
* @type {string}
|
|
10367
|
-
*
|
|
10368
|
-
*
|
|
10369
|
-
* @remarks
|
|
10370
|
-
* This key constant provides type-safe access to the `notification_id` property of Notification objects.
|
|
10371
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10372
|
-
*
|
|
10373
|
-
* @example
|
|
10374
|
-
* ```typescript
|
|
10375
|
-
* // Direct property access
|
|
10376
|
-
* const value = notification[KEY_NOTIFICATION_NOTIFICATION_ID];
|
|
10377
|
-
*
|
|
10378
|
-
* // Dynamic property access
|
|
10379
|
-
* const propertyName = KEY_NOTIFICATION_NOTIFICATION_ID;
|
|
10380
|
-
* const value = notification[propertyName];
|
|
10381
|
-
* ```
|
|
10382
|
-
*
|
|
10383
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10384
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10385
|
-
*/
|
|
10386
|
-
export const KEY_NOTIFICATION_NOTIFICATION_ID = 'notification_id' as keyof Notification;
|
|
10387
|
-
/**
|
|
10388
|
-
* Publish Date
|
|
10389
|
-
*
|
|
10390
|
-
* The date/time the notification is to be published
|
|
10391
|
-
*
|
|
10392
|
-
* @type {string}
|
|
10393
|
-
*
|
|
10394
|
-
*
|
|
10395
|
-
* @remarks
|
|
10396
|
-
* This key constant provides type-safe access to the `publish_date` property of Notification objects.
|
|
10397
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10398
|
-
*
|
|
10399
|
-
* @example
|
|
10400
|
-
* ```typescript
|
|
10401
|
-
* // Direct property access
|
|
10402
|
-
* const value = notification[KEY_NOTIFICATION_PUBLISH_DATE];
|
|
10403
|
-
*
|
|
10404
|
-
* // Dynamic property access
|
|
10405
|
-
* const propertyName = KEY_NOTIFICATION_PUBLISH_DATE;
|
|
10406
|
-
* const value = notification[propertyName];
|
|
10407
|
-
* ```
|
|
10408
|
-
*
|
|
10409
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10410
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10411
|
-
*/
|
|
10412
|
-
export const KEY_NOTIFICATION_PUBLISH_DATE = 'publish_date' as keyof Notification;
|
|
10413
|
-
/**
|
|
10414
|
-
* Source
|
|
10415
|
-
*
|
|
10416
|
-
* Source of the notification
|
|
10417
|
-
*
|
|
10418
|
-
* @type {string}
|
|
10419
|
-
*
|
|
10420
|
-
*
|
|
10421
|
-
* @remarks
|
|
10422
|
-
* This key constant provides type-safe access to the `source` property of Notification objects.
|
|
10423
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10424
|
-
*
|
|
10425
|
-
* @example
|
|
10426
|
-
* ```typescript
|
|
10427
|
-
* // Direct property access
|
|
10428
|
-
* const value = notification[KEY_NOTIFICATION_SOURCE];
|
|
10429
|
-
*
|
|
10430
|
-
* // Dynamic property access
|
|
10431
|
-
* const propertyName = KEY_NOTIFICATION_SOURCE;
|
|
10432
|
-
* const value = notification[propertyName];
|
|
10433
|
-
* ```
|
|
10434
|
-
*
|
|
10435
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10436
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10437
|
-
*/
|
|
10438
|
-
export const KEY_NOTIFICATION_SOURCE = 'source' as keyof Notification;
|
|
10439
|
-
/**
|
|
10440
|
-
* Subject
|
|
10441
|
-
*
|
|
10442
|
-
* The subject of the notification
|
|
10443
|
-
*
|
|
10444
|
-
* @type {string}
|
|
10445
|
-
*
|
|
10446
|
-
*
|
|
10447
|
-
* @remarks
|
|
10448
|
-
* This key constant provides type-safe access to the `subject` property of Notification objects.
|
|
10449
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10450
|
-
*
|
|
10451
|
-
* @example
|
|
10452
|
-
* ```typescript
|
|
10453
|
-
* // Direct property access
|
|
10454
|
-
* const value = notification[KEY_NOTIFICATION_SUBJECT];
|
|
10455
|
-
*
|
|
10456
|
-
* // Dynamic property access
|
|
10457
|
-
* const propertyName = KEY_NOTIFICATION_SUBJECT;
|
|
10458
|
-
* const value = notification[propertyName];
|
|
10459
|
-
* ```
|
|
10460
|
-
*
|
|
10461
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10462
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10463
|
-
*/
|
|
10464
|
-
export const KEY_NOTIFICATION_SUBJECT = 'subject' as keyof Notification;
|
|
10465
|
-
/**
|
|
10466
|
-
* Target
|
|
10467
|
-
*
|
|
10468
|
-
* Target audience (broadcast, account, user)
|
|
10469
|
-
*
|
|
10470
|
-
* @type {string}
|
|
10471
|
-
*
|
|
10472
|
-
*
|
|
10473
|
-
* @remarks
|
|
10474
|
-
* This key constant provides type-safe access to the `target` property of Notification objects.
|
|
10475
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10476
|
-
*
|
|
10477
|
-
* @example
|
|
10478
|
-
* ```typescript
|
|
10479
|
-
* // Direct property access
|
|
10480
|
-
* const value = notification[KEY_NOTIFICATION_TARGET];
|
|
10481
|
-
*
|
|
10482
|
-
* // Dynamic property access
|
|
10483
|
-
* const propertyName = KEY_NOTIFICATION_TARGET;
|
|
10484
|
-
* const value = notification[propertyName];
|
|
10485
|
-
* ```
|
|
10486
|
-
*
|
|
10487
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10488
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10489
|
-
*/
|
|
10490
|
-
export const KEY_NOTIFICATION_TARGET = 'target' as keyof Notification;
|
|
10491
|
-
/**
|
|
10492
|
-
* Type
|
|
10493
|
-
*
|
|
10494
|
-
* The type of notification
|
|
10495
|
-
*
|
|
10496
|
-
* @type {string}
|
|
10497
|
-
*
|
|
10498
|
-
*
|
|
10499
|
-
* @remarks
|
|
10500
|
-
* This key constant provides type-safe access to the `type` property of Notification objects.
|
|
10501
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10502
|
-
*
|
|
10503
|
-
* @example
|
|
10504
|
-
* ```typescript
|
|
10505
|
-
* // Direct property access
|
|
10506
|
-
* const value = notification[KEY_NOTIFICATION_TYPE];
|
|
10507
|
-
*
|
|
10508
|
-
* // Dynamic property access
|
|
10509
|
-
* const propertyName = KEY_NOTIFICATION_TYPE;
|
|
10510
|
-
* const value = notification[propertyName];
|
|
10511
|
-
* ```
|
|
10512
|
-
*
|
|
10513
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10514
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10515
|
-
*/
|
|
10516
|
-
export const KEY_NOTIFICATION_TYPE = 'type' as keyof Notification;
|
|
10517
|
-
/**
|
|
10518
|
-
* Updated On
|
|
10519
|
-
*
|
|
10520
|
-
* The date/time the entry was last updated on
|
|
10521
|
-
*
|
|
10522
|
-
* @type {string}
|
|
10523
|
-
*
|
|
10524
|
-
*
|
|
10525
|
-
* @remarks
|
|
10526
|
-
* This key constant provides type-safe access to the `updated_on` property of Notification objects.
|
|
10527
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10528
|
-
*
|
|
10529
|
-
* @example
|
|
10530
|
-
* ```typescript
|
|
10531
|
-
* // Direct property access
|
|
10532
|
-
* const value = notification[KEY_NOTIFICATION_UPDATED_ON];
|
|
10533
|
-
*
|
|
10534
|
-
* // Dynamic property access
|
|
10535
|
-
* const propertyName = KEY_NOTIFICATION_UPDATED_ON;
|
|
10536
|
-
* const value = notification[propertyName];
|
|
10537
|
-
* ```
|
|
10538
|
-
*
|
|
10539
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10540
|
-
* @see {@link KEYS_NOTIFICATION} - Array of all keys for this type
|
|
10541
|
-
*/
|
|
10542
|
-
export const KEY_NOTIFICATION_UPDATED_ON = 'updated_on' as keyof Notification;
|
|
10543
|
-
|
|
10544
|
-
/**
|
|
10545
|
-
* Array of all Notification property keys
|
|
10546
|
-
*
|
|
10547
|
-
* @remarks
|
|
10548
|
-
* This constant provides a readonly array containing all valid property keys for Notification objects.
|
|
10549
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
10550
|
-
*
|
|
10551
|
-
* @example
|
|
10552
|
-
* ```typescript
|
|
10553
|
-
* // Iterating through all keys
|
|
10554
|
-
* for (const key of KEYS_NOTIFICATION) {
|
|
10555
|
-
* console.log(`Property: ${key}, Value: ${notification[key]}`);
|
|
10556
|
-
* }
|
|
10557
|
-
*
|
|
10558
|
-
* // Validation
|
|
10559
|
-
* const isValidKey = KEYS_NOTIFICATION.includes(someKey);
|
|
10560
|
-
* ```
|
|
10561
|
-
*
|
|
10562
|
-
* @see {@link Notification} - The TypeScript type definition
|
|
10563
|
-
*/
|
|
10564
|
-
export const KEYS_NOTIFICATION = [
|
|
10565
|
-
KEY_NOTIFICATION_AUTHOR,
|
|
10566
|
-
KEY_NOTIFICATION_CREATED_ON,
|
|
10567
|
-
KEY_NOTIFICATION_MESSAGE,
|
|
10568
|
-
KEY_NOTIFICATION_NOTIFICATION_ID,
|
|
10569
|
-
KEY_NOTIFICATION_PUBLISH_DATE,
|
|
10570
|
-
KEY_NOTIFICATION_SOURCE,
|
|
10571
|
-
KEY_NOTIFICATION_SUBJECT,
|
|
10572
|
-
KEY_NOTIFICATION_TARGET,
|
|
10573
|
-
KEY_NOTIFICATION_TYPE,
|
|
10574
|
-
KEY_NOTIFICATION_UPDATED_ON,
|
|
10575
|
-
] as const satisfies (keyof Notification)[];
|
|
10576
|
-
|
|
10577
|
-
/**
|
|
10578
|
-
* Author
|
|
10579
|
-
*
|
|
10580
|
-
* The user or system that created the notification
|
|
10581
|
-
*
|
|
10582
|
-
* @type {string}
|
|
10583
|
-
*
|
|
10584
|
-
*
|
|
10585
|
-
* @remarks
|
|
10586
|
-
* This key constant provides type-safe access to the `author` property of NotificationCreate objects.
|
|
10587
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10588
|
-
*
|
|
10589
|
-
* @example
|
|
10590
|
-
* ```typescript
|
|
10591
|
-
* // Direct property access
|
|
10592
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_AUTHOR];
|
|
10593
|
-
*
|
|
10594
|
-
* // Dynamic property access
|
|
10595
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_AUTHOR;
|
|
10596
|
-
* const value = notificationcreate[propertyName];
|
|
10597
|
-
* ```
|
|
10598
|
-
*
|
|
10599
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10600
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10601
|
-
*/
|
|
10602
|
-
export const KEY_NOTIFICATION_CREATE_AUTHOR = 'author' as keyof NotificationCreate;
|
|
10603
|
-
/**
|
|
10604
|
-
* Message
|
|
10605
|
-
*
|
|
10606
|
-
* The message content of the notification
|
|
10607
|
-
*
|
|
10608
|
-
* @type {string}
|
|
10609
|
-
*
|
|
10610
|
-
*
|
|
10611
|
-
* @remarks
|
|
10612
|
-
* This key constant provides type-safe access to the `message` property of NotificationCreate objects.
|
|
10613
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10614
|
-
*
|
|
10615
|
-
* @example
|
|
10616
|
-
* ```typescript
|
|
10617
|
-
* // Direct property access
|
|
10618
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_MESSAGE];
|
|
10619
|
-
*
|
|
10620
|
-
* // Dynamic property access
|
|
10621
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_MESSAGE;
|
|
10622
|
-
* const value = notificationcreate[propertyName];
|
|
10623
|
-
* ```
|
|
10624
|
-
*
|
|
10625
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10626
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10627
|
-
*/
|
|
10628
|
-
export const KEY_NOTIFICATION_CREATE_MESSAGE = 'message' as keyof NotificationCreate;
|
|
10629
|
-
/**
|
|
10630
|
-
* Publish Date
|
|
10631
|
-
*
|
|
10632
|
-
* The date/time the notification is to be published
|
|
10633
|
-
*
|
|
10634
|
-
* @type {string}
|
|
10635
|
-
*
|
|
10636
|
-
*
|
|
10637
|
-
* @remarks
|
|
10638
|
-
* This key constant provides type-safe access to the `publish_date` property of NotificationCreate objects.
|
|
10639
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10640
|
-
*
|
|
10641
|
-
* @example
|
|
10642
|
-
* ```typescript
|
|
10643
|
-
* // Direct property access
|
|
10644
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_PUBLISH_DATE];
|
|
10645
|
-
*
|
|
10646
|
-
* // Dynamic property access
|
|
10647
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_PUBLISH_DATE;
|
|
10648
|
-
* const value = notificationcreate[propertyName];
|
|
10649
|
-
* ```
|
|
10650
|
-
*
|
|
10651
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10652
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10653
|
-
*/
|
|
10654
|
-
export const KEY_NOTIFICATION_CREATE_PUBLISH_DATE = 'publish_date' as keyof NotificationCreate;
|
|
10655
|
-
/**
|
|
10656
|
-
* Source
|
|
10657
|
-
*
|
|
10658
|
-
* Source of the notification
|
|
10659
|
-
*
|
|
10660
|
-
* @type {string}
|
|
10661
|
-
*
|
|
10662
|
-
*
|
|
10663
|
-
* @remarks
|
|
10664
|
-
* This key constant provides type-safe access to the `source` property of NotificationCreate objects.
|
|
10665
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10666
|
-
*
|
|
10667
|
-
* @example
|
|
10668
|
-
* ```typescript
|
|
10669
|
-
* // Direct property access
|
|
10670
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_SOURCE];
|
|
10671
|
-
*
|
|
10672
|
-
* // Dynamic property access
|
|
10673
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_SOURCE;
|
|
10674
|
-
* const value = notificationcreate[propertyName];
|
|
10675
|
-
* ```
|
|
10676
|
-
*
|
|
10677
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10678
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10679
|
-
*/
|
|
10680
|
-
export const KEY_NOTIFICATION_CREATE_SOURCE = 'source' as keyof NotificationCreate;
|
|
10681
|
-
/**
|
|
10682
|
-
* Subject
|
|
10683
|
-
*
|
|
10684
|
-
* The subject of the notification
|
|
10685
|
-
*
|
|
10686
|
-
* @type {string}
|
|
10687
|
-
*
|
|
10688
|
-
*
|
|
10689
|
-
* @remarks
|
|
10690
|
-
* This key constant provides type-safe access to the `subject` property of NotificationCreate objects.
|
|
10691
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10692
|
-
*
|
|
10693
|
-
* @example
|
|
10694
|
-
* ```typescript
|
|
10695
|
-
* // Direct property access
|
|
10696
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_SUBJECT];
|
|
10697
|
-
*
|
|
10698
|
-
* // Dynamic property access
|
|
10699
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_SUBJECT;
|
|
10700
|
-
* const value = notificationcreate[propertyName];
|
|
10701
|
-
* ```
|
|
10702
|
-
*
|
|
10703
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10704
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10705
|
-
*/
|
|
10706
|
-
export const KEY_NOTIFICATION_CREATE_SUBJECT = 'subject' as keyof NotificationCreate;
|
|
10707
|
-
/**
|
|
10708
|
-
* Target
|
|
10709
|
-
*
|
|
10710
|
-
* Target audience (broadcast, account, user)
|
|
10711
|
-
*
|
|
10712
|
-
* @type {string}
|
|
10713
|
-
*
|
|
10714
|
-
*
|
|
10715
|
-
* @remarks
|
|
10716
|
-
* This key constant provides type-safe access to the `target` property of NotificationCreate objects.
|
|
10717
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10718
|
-
*
|
|
10719
|
-
* @example
|
|
10720
|
-
* ```typescript
|
|
10721
|
-
* // Direct property access
|
|
10722
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_TARGET];
|
|
10723
|
-
*
|
|
10724
|
-
* // Dynamic property access
|
|
10725
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_TARGET;
|
|
10726
|
-
* const value = notificationcreate[propertyName];
|
|
10727
|
-
* ```
|
|
10728
|
-
*
|
|
10729
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10730
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10731
|
-
*/
|
|
10732
|
-
export const KEY_NOTIFICATION_CREATE_TARGET = 'target' as keyof NotificationCreate;
|
|
10733
|
-
/**
|
|
10734
|
-
* Type
|
|
10735
|
-
*
|
|
10736
|
-
* The type of notification
|
|
10737
|
-
*
|
|
10738
|
-
* @type {string}
|
|
10739
|
-
*
|
|
10740
|
-
*
|
|
10741
|
-
* @remarks
|
|
10742
|
-
* This key constant provides type-safe access to the `type` property of NotificationCreate objects.
|
|
10743
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10744
|
-
*
|
|
10745
|
-
* @example
|
|
10746
|
-
* ```typescript
|
|
10747
|
-
* // Direct property access
|
|
10748
|
-
* const value = notificationcreate[KEY_NOTIFICATION_CREATE_TYPE];
|
|
10749
|
-
*
|
|
10750
|
-
* // Dynamic property access
|
|
10751
|
-
* const propertyName = KEY_NOTIFICATION_CREATE_TYPE;
|
|
10752
|
-
* const value = notificationcreate[propertyName];
|
|
10753
|
-
* ```
|
|
10754
|
-
*
|
|
10755
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10756
|
-
* @see {@link KEYS_NOTIFICATION_CREATE} - Array of all keys for this type
|
|
10757
|
-
*/
|
|
10758
|
-
export const KEY_NOTIFICATION_CREATE_TYPE = 'type' as keyof NotificationCreate;
|
|
10759
|
-
|
|
10760
|
-
/**
|
|
10761
|
-
* Array of all NotificationCreate property keys
|
|
10762
|
-
*
|
|
10763
|
-
* @remarks
|
|
10764
|
-
* This constant provides a readonly array containing all valid property keys for NotificationCreate objects.
|
|
10765
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
10766
|
-
*
|
|
10767
|
-
* @example
|
|
10768
|
-
* ```typescript
|
|
10769
|
-
* // Iterating through all keys
|
|
10770
|
-
* for (const key of KEYS_NOTIFICATION_CREATE) {
|
|
10771
|
-
* console.log(`Property: ${key}, Value: ${notificationcreate[key]}`);
|
|
10772
|
-
* }
|
|
10773
|
-
*
|
|
10774
|
-
* // Validation
|
|
10775
|
-
* const isValidKey = KEYS_NOTIFICATION_CREATE.includes(someKey);
|
|
10776
|
-
* ```
|
|
10777
|
-
*
|
|
10778
|
-
* @see {@link NotificationCreate} - The TypeScript type definition
|
|
10779
|
-
*/
|
|
10780
|
-
export const KEYS_NOTIFICATION_CREATE = [
|
|
10781
|
-
KEY_NOTIFICATION_CREATE_AUTHOR,
|
|
10782
|
-
KEY_NOTIFICATION_CREATE_MESSAGE,
|
|
10783
|
-
KEY_NOTIFICATION_CREATE_PUBLISH_DATE,
|
|
10784
|
-
KEY_NOTIFICATION_CREATE_SOURCE,
|
|
10785
|
-
KEY_NOTIFICATION_CREATE_SUBJECT,
|
|
10786
|
-
KEY_NOTIFICATION_CREATE_TARGET,
|
|
10787
|
-
KEY_NOTIFICATION_CREATE_TYPE,
|
|
10788
|
-
] as const satisfies (keyof NotificationCreate)[];
|
|
10789
|
-
|
|
10790
|
-
/**
|
|
10791
|
-
* Author
|
|
10792
|
-
*
|
|
10793
|
-
* The user or system that created the notification
|
|
10794
|
-
*
|
|
10795
|
-
* @type {string}
|
|
10796
|
-
*
|
|
10797
|
-
*
|
|
10798
|
-
* @remarks
|
|
10799
|
-
* This key constant provides type-safe access to the `author` property of NotificationSummary objects.
|
|
10800
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10801
|
-
*
|
|
10802
|
-
* @example
|
|
10803
|
-
* ```typescript
|
|
10804
|
-
* // Direct property access
|
|
10805
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_AUTHOR];
|
|
10806
|
-
*
|
|
10807
|
-
* // Dynamic property access
|
|
10808
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_AUTHOR;
|
|
10809
|
-
* const value = notificationsummary[propertyName];
|
|
10810
|
-
* ```
|
|
10811
|
-
*
|
|
10812
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10813
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10814
|
-
*/
|
|
10815
|
-
export const KEY_NOTIFICATION_SUMMARY_AUTHOR = 'author' as keyof NotificationSummary;
|
|
10816
|
-
/**
|
|
10817
|
-
* Message
|
|
10818
|
-
*
|
|
10819
|
-
* The message content of the notification
|
|
10820
|
-
*
|
|
10821
|
-
* @type {string}
|
|
10822
|
-
*
|
|
10823
|
-
*
|
|
10824
|
-
* @remarks
|
|
10825
|
-
* This key constant provides type-safe access to the `message` property of NotificationSummary objects.
|
|
10826
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10827
|
-
*
|
|
10828
|
-
* @example
|
|
10829
|
-
* ```typescript
|
|
10830
|
-
* // Direct property access
|
|
10831
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_MESSAGE];
|
|
10832
|
-
*
|
|
10833
|
-
* // Dynamic property access
|
|
10834
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_MESSAGE;
|
|
10835
|
-
* const value = notificationsummary[propertyName];
|
|
10836
|
-
* ```
|
|
10837
|
-
*
|
|
10838
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10839
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10840
|
-
*/
|
|
10841
|
-
export const KEY_NOTIFICATION_SUMMARY_MESSAGE = 'message' as keyof NotificationSummary;
|
|
10842
|
-
/**
|
|
10843
|
-
* Notification Id
|
|
10844
|
-
*
|
|
10845
|
-
*
|
|
10846
|
-
* @type {string}
|
|
10847
|
-
*
|
|
10848
|
-
*
|
|
10849
|
-
* @remarks
|
|
10850
|
-
* This key constant provides type-safe access to the `notification_id` property of NotificationSummary objects.
|
|
10851
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10852
|
-
*
|
|
10853
|
-
* @example
|
|
10854
|
-
* ```typescript
|
|
10855
|
-
* // Direct property access
|
|
10856
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_NOTIFICATION_ID];
|
|
10857
|
-
*
|
|
10858
|
-
* // Dynamic property access
|
|
10859
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_NOTIFICATION_ID;
|
|
10860
|
-
* const value = notificationsummary[propertyName];
|
|
10861
|
-
* ```
|
|
10862
|
-
*
|
|
10863
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10864
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10865
|
-
*/
|
|
10866
|
-
export const KEY_NOTIFICATION_SUMMARY_NOTIFICATION_ID = 'notification_id' as keyof NotificationSummary;
|
|
10867
|
-
/**
|
|
10868
|
-
* Publish Date
|
|
10869
|
-
*
|
|
10870
|
-
* The date/time the notification is to be published
|
|
10871
|
-
*
|
|
10872
|
-
* @type {string}
|
|
10873
|
-
*
|
|
10874
|
-
*
|
|
10875
|
-
* @remarks
|
|
10876
|
-
* This key constant provides type-safe access to the `publish_date` property of NotificationSummary objects.
|
|
10877
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10878
|
-
*
|
|
10879
|
-
* @example
|
|
10880
|
-
* ```typescript
|
|
10881
|
-
* // Direct property access
|
|
10882
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_PUBLISH_DATE];
|
|
10883
|
-
*
|
|
10884
|
-
* // Dynamic property access
|
|
10885
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_PUBLISH_DATE;
|
|
10886
|
-
* const value = notificationsummary[propertyName];
|
|
10887
|
-
* ```
|
|
10888
|
-
*
|
|
10889
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10890
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10891
|
-
*/
|
|
10892
|
-
export const KEY_NOTIFICATION_SUMMARY_PUBLISH_DATE = 'publish_date' as keyof NotificationSummary;
|
|
10893
|
-
/**
|
|
10894
|
-
* Source
|
|
10895
|
-
*
|
|
10896
|
-
* Source of the notification
|
|
10897
|
-
*
|
|
10898
|
-
* @type {string}
|
|
10899
|
-
*
|
|
10900
|
-
*
|
|
10901
|
-
* @remarks
|
|
10902
|
-
* This key constant provides type-safe access to the `source` property of NotificationSummary objects.
|
|
10903
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10904
|
-
*
|
|
10905
|
-
* @example
|
|
10906
|
-
* ```typescript
|
|
10907
|
-
* // Direct property access
|
|
10908
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_SOURCE];
|
|
10909
|
-
*
|
|
10910
|
-
* // Dynamic property access
|
|
10911
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_SOURCE;
|
|
10912
|
-
* const value = notificationsummary[propertyName];
|
|
10913
|
-
* ```
|
|
10914
|
-
*
|
|
10915
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10916
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10917
|
-
*/
|
|
10918
|
-
export const KEY_NOTIFICATION_SUMMARY_SOURCE = 'source' as keyof NotificationSummary;
|
|
10919
|
-
/**
|
|
10920
|
-
* Subject
|
|
10921
|
-
*
|
|
10922
|
-
* The subject of the notification
|
|
10923
|
-
*
|
|
10924
|
-
* @type {string}
|
|
10925
|
-
*
|
|
10926
|
-
*
|
|
10927
|
-
* @remarks
|
|
10928
|
-
* This key constant provides type-safe access to the `subject` property of NotificationSummary objects.
|
|
10929
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10930
|
-
*
|
|
10931
|
-
* @example
|
|
10932
|
-
* ```typescript
|
|
10933
|
-
* // Direct property access
|
|
10934
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_SUBJECT];
|
|
10935
|
-
*
|
|
10936
|
-
* // Dynamic property access
|
|
10937
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_SUBJECT;
|
|
10938
|
-
* const value = notificationsummary[propertyName];
|
|
10939
|
-
* ```
|
|
10940
|
-
*
|
|
10941
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10942
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10943
|
-
*/
|
|
10944
|
-
export const KEY_NOTIFICATION_SUMMARY_SUBJECT = 'subject' as keyof NotificationSummary;
|
|
10945
|
-
/**
|
|
10946
|
-
* Target
|
|
10947
|
-
*
|
|
10948
|
-
* Target audience (broadcast, account, user)
|
|
10949
|
-
*
|
|
10950
|
-
* @type {string}
|
|
10951
|
-
*
|
|
10952
|
-
*
|
|
10953
|
-
* @remarks
|
|
10954
|
-
* This key constant provides type-safe access to the `target` property of NotificationSummary objects.
|
|
10955
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10956
|
-
*
|
|
10957
|
-
* @example
|
|
10958
|
-
* ```typescript
|
|
10959
|
-
* // Direct property access
|
|
10960
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_TARGET];
|
|
10961
|
-
*
|
|
10962
|
-
* // Dynamic property access
|
|
10963
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_TARGET;
|
|
10964
|
-
* const value = notificationsummary[propertyName];
|
|
10965
|
-
* ```
|
|
10966
|
-
*
|
|
10967
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10968
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10969
|
-
*/
|
|
10970
|
-
export const KEY_NOTIFICATION_SUMMARY_TARGET = 'target' as keyof NotificationSummary;
|
|
10971
|
-
/**
|
|
10972
|
-
* Type
|
|
10973
|
-
*
|
|
10974
|
-
* The type of notification
|
|
10975
|
-
*
|
|
10976
|
-
* @type {string}
|
|
10977
|
-
*
|
|
10978
|
-
*
|
|
10979
|
-
* @remarks
|
|
10980
|
-
* This key constant provides type-safe access to the `type` property of NotificationSummary objects.
|
|
10981
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
10982
|
-
*
|
|
10983
|
-
* @example
|
|
10984
|
-
* ```typescript
|
|
10985
|
-
* // Direct property access
|
|
10986
|
-
* const value = notificationsummary[KEY_NOTIFICATION_SUMMARY_TYPE];
|
|
10987
|
-
*
|
|
10988
|
-
* // Dynamic property access
|
|
10989
|
-
* const propertyName = KEY_NOTIFICATION_SUMMARY_TYPE;
|
|
10990
|
-
* const value = notificationsummary[propertyName];
|
|
10991
|
-
* ```
|
|
10992
|
-
*
|
|
10993
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
10994
|
-
* @see {@link KEYS_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
10995
|
-
*/
|
|
10996
|
-
export const KEY_NOTIFICATION_SUMMARY_TYPE = 'type' as keyof NotificationSummary;
|
|
10997
|
-
|
|
10998
|
-
/**
|
|
10999
|
-
* Array of all NotificationSummary property keys
|
|
11000
|
-
*
|
|
11001
|
-
* @remarks
|
|
11002
|
-
* This constant provides a readonly array containing all valid property keys for NotificationSummary objects.
|
|
11003
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
11004
|
-
*
|
|
11005
|
-
* @example
|
|
11006
|
-
* ```typescript
|
|
11007
|
-
* // Iterating through all keys
|
|
11008
|
-
* for (const key of KEYS_NOTIFICATION_SUMMARY) {
|
|
11009
|
-
* console.log(`Property: ${key}, Value: ${notificationsummary[key]}`);
|
|
11010
|
-
* }
|
|
11011
|
-
*
|
|
11012
|
-
* // Validation
|
|
11013
|
-
* const isValidKey = KEYS_NOTIFICATION_SUMMARY.includes(someKey);
|
|
11014
|
-
* ```
|
|
11015
|
-
*
|
|
11016
|
-
* @see {@link NotificationSummary} - The TypeScript type definition
|
|
11017
|
-
*/
|
|
11018
|
-
export const KEYS_NOTIFICATION_SUMMARY = [
|
|
11019
|
-
KEY_NOTIFICATION_SUMMARY_AUTHOR,
|
|
11020
|
-
KEY_NOTIFICATION_SUMMARY_MESSAGE,
|
|
11021
|
-
KEY_NOTIFICATION_SUMMARY_NOTIFICATION_ID,
|
|
11022
|
-
KEY_NOTIFICATION_SUMMARY_PUBLISH_DATE,
|
|
11023
|
-
KEY_NOTIFICATION_SUMMARY_SOURCE,
|
|
11024
|
-
KEY_NOTIFICATION_SUMMARY_SUBJECT,
|
|
11025
|
-
KEY_NOTIFICATION_SUMMARY_TARGET,
|
|
11026
|
-
KEY_NOTIFICATION_SUMMARY_TYPE,
|
|
11027
|
-
] as const satisfies (keyof NotificationSummary)[];
|
|
11028
|
-
|
|
11029
|
-
/**
|
|
11030
|
-
* Author
|
|
11031
|
-
*
|
|
11032
|
-
* The user or system that created the notification
|
|
11033
|
-
*
|
|
11034
|
-
* @type {string}
|
|
11035
|
-
*
|
|
11036
|
-
*
|
|
11037
|
-
* @remarks
|
|
11038
|
-
* This key constant provides type-safe access to the `author` property of NotificationUpdate objects.
|
|
11039
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11040
|
-
*
|
|
11041
|
-
* @example
|
|
11042
|
-
* ```typescript
|
|
11043
|
-
* // Direct property access
|
|
11044
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_AUTHOR];
|
|
11045
|
-
*
|
|
11046
|
-
* // Dynamic property access
|
|
11047
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_AUTHOR;
|
|
11048
|
-
* const value = notificationupdate[propertyName];
|
|
11049
|
-
* ```
|
|
11050
|
-
*
|
|
11051
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11052
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11053
|
-
*/
|
|
11054
|
-
export const KEY_NOTIFICATION_UPDATE_AUTHOR = 'author' as keyof NotificationUpdate;
|
|
11055
|
-
/**
|
|
11056
|
-
* Message
|
|
11057
|
-
*
|
|
11058
|
-
* The message content of the notification
|
|
11059
|
-
*
|
|
11060
|
-
* @type {string}
|
|
11061
|
-
*
|
|
11062
|
-
*
|
|
11063
|
-
* @remarks
|
|
11064
|
-
* This key constant provides type-safe access to the `message` property of NotificationUpdate objects.
|
|
11065
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11066
|
-
*
|
|
11067
|
-
* @example
|
|
11068
|
-
* ```typescript
|
|
11069
|
-
* // Direct property access
|
|
11070
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_MESSAGE];
|
|
11071
|
-
*
|
|
11072
|
-
* // Dynamic property access
|
|
11073
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_MESSAGE;
|
|
11074
|
-
* const value = notificationupdate[propertyName];
|
|
11075
|
-
* ```
|
|
11076
|
-
*
|
|
11077
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11078
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11079
|
-
*/
|
|
11080
|
-
export const KEY_NOTIFICATION_UPDATE_MESSAGE = 'message' as keyof NotificationUpdate;
|
|
11081
|
-
/**
|
|
11082
|
-
* Publish Date
|
|
11083
|
-
*
|
|
11084
|
-
* The date/time the notification is to be published
|
|
11085
|
-
*
|
|
11086
|
-
* @type {string}
|
|
11087
|
-
*
|
|
11088
|
-
*
|
|
11089
|
-
* @remarks
|
|
11090
|
-
* This key constant provides type-safe access to the `publish_date` property of NotificationUpdate objects.
|
|
11091
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11092
|
-
*
|
|
11093
|
-
* @example
|
|
11094
|
-
* ```typescript
|
|
11095
|
-
* // Direct property access
|
|
11096
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_PUBLISH_DATE];
|
|
11097
|
-
*
|
|
11098
|
-
* // Dynamic property access
|
|
11099
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_PUBLISH_DATE;
|
|
11100
|
-
* const value = notificationupdate[propertyName];
|
|
11101
|
-
* ```
|
|
11102
|
-
*
|
|
11103
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11104
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11105
|
-
*/
|
|
11106
|
-
export const KEY_NOTIFICATION_UPDATE_PUBLISH_DATE = 'publish_date' as keyof NotificationUpdate;
|
|
11107
|
-
/**
|
|
11108
|
-
* Source
|
|
11109
|
-
*
|
|
11110
|
-
* Source of the notification
|
|
11111
|
-
*
|
|
11112
|
-
* @type {string}
|
|
11113
|
-
*
|
|
11114
|
-
*
|
|
11115
|
-
* @remarks
|
|
11116
|
-
* This key constant provides type-safe access to the `source` property of NotificationUpdate objects.
|
|
11117
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11118
|
-
*
|
|
11119
|
-
* @example
|
|
11120
|
-
* ```typescript
|
|
11121
|
-
* // Direct property access
|
|
11122
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_SOURCE];
|
|
11123
|
-
*
|
|
11124
|
-
* // Dynamic property access
|
|
11125
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_SOURCE;
|
|
11126
|
-
* const value = notificationupdate[propertyName];
|
|
11127
|
-
* ```
|
|
11128
|
-
*
|
|
11129
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11130
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11131
|
-
*/
|
|
11132
|
-
export const KEY_NOTIFICATION_UPDATE_SOURCE = 'source' as keyof NotificationUpdate;
|
|
11133
|
-
/**
|
|
11134
|
-
* Subject
|
|
11135
|
-
*
|
|
11136
|
-
* The subject of the notification
|
|
11137
|
-
*
|
|
11138
|
-
* @type {string}
|
|
11139
|
-
*
|
|
11140
|
-
*
|
|
11141
|
-
* @remarks
|
|
11142
|
-
* This key constant provides type-safe access to the `subject` property of NotificationUpdate objects.
|
|
11143
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11144
|
-
*
|
|
11145
|
-
* @example
|
|
11146
|
-
* ```typescript
|
|
11147
|
-
* // Direct property access
|
|
11148
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_SUBJECT];
|
|
11149
|
-
*
|
|
11150
|
-
* // Dynamic property access
|
|
11151
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_SUBJECT;
|
|
11152
|
-
* const value = notificationupdate[propertyName];
|
|
11153
|
-
* ```
|
|
11154
|
-
*
|
|
11155
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11156
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11157
|
-
*/
|
|
11158
|
-
export const KEY_NOTIFICATION_UPDATE_SUBJECT = 'subject' as keyof NotificationUpdate;
|
|
11159
|
-
/**
|
|
11160
|
-
* Target
|
|
11161
|
-
*
|
|
11162
|
-
* Target audience (broadcast, account, user)
|
|
11163
|
-
*
|
|
11164
|
-
* @type {string}
|
|
11165
|
-
*
|
|
11166
|
-
*
|
|
11167
|
-
* @remarks
|
|
11168
|
-
* This key constant provides type-safe access to the `target` property of NotificationUpdate objects.
|
|
11169
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11170
|
-
*
|
|
11171
|
-
* @example
|
|
11172
|
-
* ```typescript
|
|
11173
|
-
* // Direct property access
|
|
11174
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_TARGET];
|
|
11175
|
-
*
|
|
11176
|
-
* // Dynamic property access
|
|
11177
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_TARGET;
|
|
11178
|
-
* const value = notificationupdate[propertyName];
|
|
11179
|
-
* ```
|
|
11180
|
-
*
|
|
11181
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11182
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11183
|
-
*/
|
|
11184
|
-
export const KEY_NOTIFICATION_UPDATE_TARGET = 'target' as keyof NotificationUpdate;
|
|
11185
|
-
/**
|
|
11186
|
-
* Type
|
|
11187
|
-
*
|
|
11188
|
-
* The type of notification
|
|
11189
|
-
*
|
|
11190
|
-
* @type {string}
|
|
11191
|
-
*
|
|
11192
|
-
*
|
|
11193
|
-
* @remarks
|
|
11194
|
-
* This key constant provides type-safe access to the `type` property of NotificationUpdate objects.
|
|
11195
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
11196
|
-
*
|
|
11197
|
-
* @example
|
|
11198
|
-
* ```typescript
|
|
11199
|
-
* // Direct property access
|
|
11200
|
-
* const value = notificationupdate[KEY_NOTIFICATION_UPDATE_TYPE];
|
|
11201
|
-
*
|
|
11202
|
-
* // Dynamic property access
|
|
11203
|
-
* const propertyName = KEY_NOTIFICATION_UPDATE_TYPE;
|
|
11204
|
-
* const value = notificationupdate[propertyName];
|
|
11205
|
-
* ```
|
|
11206
|
-
*
|
|
11207
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11208
|
-
* @see {@link KEYS_NOTIFICATION_UPDATE} - Array of all keys for this type
|
|
11209
|
-
*/
|
|
11210
|
-
export const KEY_NOTIFICATION_UPDATE_TYPE = 'type' as keyof NotificationUpdate;
|
|
11211
|
-
|
|
11212
|
-
/**
|
|
11213
|
-
* Array of all NotificationUpdate property keys
|
|
11214
|
-
*
|
|
11215
|
-
* @remarks
|
|
11216
|
-
* This constant provides a readonly array containing all valid property keys for NotificationUpdate objects.
|
|
11217
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
11218
|
-
*
|
|
11219
|
-
* @example
|
|
11220
|
-
* ```typescript
|
|
11221
|
-
* // Iterating through all keys
|
|
11222
|
-
* for (const key of KEYS_NOTIFICATION_UPDATE) {
|
|
11223
|
-
* console.log(`Property: ${key}, Value: ${notificationupdate[key]}`);
|
|
11224
|
-
* }
|
|
11225
|
-
*
|
|
11226
|
-
* // Validation
|
|
11227
|
-
* const isValidKey = KEYS_NOTIFICATION_UPDATE.includes(someKey);
|
|
11228
|
-
* ```
|
|
11229
|
-
*
|
|
11230
|
-
* @see {@link NotificationUpdate} - The TypeScript type definition
|
|
11231
|
-
*/
|
|
11232
|
-
export const KEYS_NOTIFICATION_UPDATE = [
|
|
11233
|
-
KEY_NOTIFICATION_UPDATE_AUTHOR,
|
|
11234
|
-
KEY_NOTIFICATION_UPDATE_MESSAGE,
|
|
11235
|
-
KEY_NOTIFICATION_UPDATE_PUBLISH_DATE,
|
|
11236
|
-
KEY_NOTIFICATION_UPDATE_SOURCE,
|
|
11237
|
-
KEY_NOTIFICATION_UPDATE_SUBJECT,
|
|
11238
|
-
KEY_NOTIFICATION_UPDATE_TARGET,
|
|
11239
|
-
KEY_NOTIFICATION_UPDATE_TYPE,
|
|
11240
|
-
] as const satisfies (keyof NotificationUpdate)[];
|
|
11241
|
-
|
|
11242
10279
|
/**
|
|
11243
10280
|
* Address 1
|
|
11244
10281
|
*
|
|
@@ -15081,6 +14118,55 @@ export const KEYS_PLAN_INFO = [
|
|
|
15081
14118
|
KEY_PLAN_INFO_PLAN_TYPE,
|
|
15082
14119
|
] as const satisfies (keyof PlanInfo)[];
|
|
15083
14120
|
|
|
14121
|
+
/**
|
|
14122
|
+
* plan property
|
|
14123
|
+
*
|
|
14124
|
+
*
|
|
14125
|
+
*
|
|
14126
|
+
*
|
|
14127
|
+
* @remarks
|
|
14128
|
+
* This key constant provides type-safe access to the `plan` property of PlanUpdate objects.
|
|
14129
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
14130
|
+
*
|
|
14131
|
+
* @example
|
|
14132
|
+
* ```typescript
|
|
14133
|
+
* // Direct property access
|
|
14134
|
+
* const value = planupdate[KEY_PLAN_UPDATE_PLAN];
|
|
14135
|
+
*
|
|
14136
|
+
* // Dynamic property access
|
|
14137
|
+
* const propertyName = KEY_PLAN_UPDATE_PLAN;
|
|
14138
|
+
* const value = planupdate[propertyName];
|
|
14139
|
+
* ```
|
|
14140
|
+
*
|
|
14141
|
+
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
14142
|
+
* @see {@link KEYS_PLAN_UPDATE} - Array of all keys for this type
|
|
14143
|
+
*/
|
|
14144
|
+
export const KEY_PLAN_UPDATE_PLAN = 'plan' as keyof PlanUpdate;
|
|
14145
|
+
|
|
14146
|
+
/**
|
|
14147
|
+
* Array of all PlanUpdate property keys
|
|
14148
|
+
*
|
|
14149
|
+
* @remarks
|
|
14150
|
+
* This constant provides a readonly array containing all valid property keys for PlanUpdate objects.
|
|
14151
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
14152
|
+
*
|
|
14153
|
+
* @example
|
|
14154
|
+
* ```typescript
|
|
14155
|
+
* // Iterating through all keys
|
|
14156
|
+
* for (const key of KEYS_PLAN_UPDATE) {
|
|
14157
|
+
* console.log(`Property: ${key}, Value: ${planupdate[key]}`);
|
|
14158
|
+
* }
|
|
14159
|
+
*
|
|
14160
|
+
* // Validation
|
|
14161
|
+
* const isValidKey = KEYS_PLAN_UPDATE.includes(someKey);
|
|
14162
|
+
* ```
|
|
14163
|
+
*
|
|
14164
|
+
* @see {@link PlanUpdate} - The TypeScript type definition
|
|
14165
|
+
*/
|
|
14166
|
+
export const KEYS_PLAN_UPDATE = [
|
|
14167
|
+
KEY_PLAN_UPDATE_PLAN,
|
|
14168
|
+
] as const satisfies (keyof PlanUpdate)[];
|
|
14169
|
+
|
|
15084
14170
|
/**
|
|
15085
14171
|
* Affects
|
|
15086
14172
|
*
|
|
@@ -18178,315 +17264,6 @@ export const KEYS_USER_CREATE = [
|
|
|
18178
17264
|
KEY_USER_CREATE_USERNAME,
|
|
18179
17265
|
] as const satisfies (keyof UserCreate)[];
|
|
18180
17266
|
|
|
18181
|
-
/**
|
|
18182
|
-
* Created On
|
|
18183
|
-
*
|
|
18184
|
-
* The date/time the entry was created on
|
|
18185
|
-
*
|
|
18186
|
-
* @type {string}
|
|
18187
|
-
*
|
|
18188
|
-
*
|
|
18189
|
-
* @remarks
|
|
18190
|
-
* This key constant provides type-safe access to the `created_on` property of UserNotification objects.
|
|
18191
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18192
|
-
*
|
|
18193
|
-
* @example
|
|
18194
|
-
* ```typescript
|
|
18195
|
-
* // Direct property access
|
|
18196
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_CREATED_ON];
|
|
18197
|
-
*
|
|
18198
|
-
* // Dynamic property access
|
|
18199
|
-
* const propertyName = KEY_USER_NOTIFICATION_CREATED_ON;
|
|
18200
|
-
* const value = usernotification[propertyName];
|
|
18201
|
-
* ```
|
|
18202
|
-
*
|
|
18203
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18204
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18205
|
-
*/
|
|
18206
|
-
export const KEY_USER_NOTIFICATION_CREATED_ON = 'created_on' as keyof UserNotification;
|
|
18207
|
-
/**
|
|
18208
|
-
* notification property
|
|
18209
|
-
*
|
|
18210
|
-
*
|
|
18211
|
-
*
|
|
18212
|
-
*
|
|
18213
|
-
* @remarks
|
|
18214
|
-
* This key constant provides type-safe access to the `notification` property of UserNotification objects.
|
|
18215
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18216
|
-
*
|
|
18217
|
-
* @example
|
|
18218
|
-
* ```typescript
|
|
18219
|
-
* // Direct property access
|
|
18220
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_NOTIFICATION];
|
|
18221
|
-
*
|
|
18222
|
-
* // Dynamic property access
|
|
18223
|
-
* const propertyName = KEY_USER_NOTIFICATION_NOTIFICATION;
|
|
18224
|
-
* const value = usernotification[propertyName];
|
|
18225
|
-
* ```
|
|
18226
|
-
*
|
|
18227
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18228
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18229
|
-
*/
|
|
18230
|
-
export const KEY_USER_NOTIFICATION_NOTIFICATION = 'notification' as keyof UserNotification;
|
|
18231
|
-
/**
|
|
18232
|
-
* Notification Id
|
|
18233
|
-
*
|
|
18234
|
-
* Unique identifier for the notification
|
|
18235
|
-
*
|
|
18236
|
-
* @type {string}
|
|
18237
|
-
*
|
|
18238
|
-
*
|
|
18239
|
-
* @remarks
|
|
18240
|
-
* This key constant provides type-safe access to the `notification_id` property of UserNotification objects.
|
|
18241
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18242
|
-
*
|
|
18243
|
-
* @example
|
|
18244
|
-
* ```typescript
|
|
18245
|
-
* // Direct property access
|
|
18246
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_NOTIFICATION_ID];
|
|
18247
|
-
*
|
|
18248
|
-
* // Dynamic property access
|
|
18249
|
-
* const propertyName = KEY_USER_NOTIFICATION_NOTIFICATION_ID;
|
|
18250
|
-
* const value = usernotification[propertyName];
|
|
18251
|
-
* ```
|
|
18252
|
-
*
|
|
18253
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18254
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18255
|
-
*/
|
|
18256
|
-
export const KEY_USER_NOTIFICATION_NOTIFICATION_ID = 'notification_id' as keyof UserNotification;
|
|
18257
|
-
/**
|
|
18258
|
-
* status property
|
|
18259
|
-
*
|
|
18260
|
-
* Whether the user has read the notification
|
|
18261
|
-
*
|
|
18262
|
-
*
|
|
18263
|
-
*
|
|
18264
|
-
* @remarks
|
|
18265
|
-
* This key constant provides type-safe access to the `status` property of UserNotification objects.
|
|
18266
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18267
|
-
*
|
|
18268
|
-
* @example
|
|
18269
|
-
* ```typescript
|
|
18270
|
-
* // Direct property access
|
|
18271
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_STATUS];
|
|
18272
|
-
*
|
|
18273
|
-
* // Dynamic property access
|
|
18274
|
-
* const propertyName = KEY_USER_NOTIFICATION_STATUS;
|
|
18275
|
-
* const value = usernotification[propertyName];
|
|
18276
|
-
* ```
|
|
18277
|
-
*
|
|
18278
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18279
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18280
|
-
*/
|
|
18281
|
-
export const KEY_USER_NOTIFICATION_STATUS = 'status' as keyof UserNotification;
|
|
18282
|
-
/**
|
|
18283
|
-
* Updated On
|
|
18284
|
-
*
|
|
18285
|
-
* The date/time the entry was last updated on
|
|
18286
|
-
*
|
|
18287
|
-
* @type {string}
|
|
18288
|
-
*
|
|
18289
|
-
*
|
|
18290
|
-
* @remarks
|
|
18291
|
-
* This key constant provides type-safe access to the `updated_on` property of UserNotification objects.
|
|
18292
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18293
|
-
*
|
|
18294
|
-
* @example
|
|
18295
|
-
* ```typescript
|
|
18296
|
-
* // Direct property access
|
|
18297
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_UPDATED_ON];
|
|
18298
|
-
*
|
|
18299
|
-
* // Dynamic property access
|
|
18300
|
-
* const propertyName = KEY_USER_NOTIFICATION_UPDATED_ON;
|
|
18301
|
-
* const value = usernotification[propertyName];
|
|
18302
|
-
* ```
|
|
18303
|
-
*
|
|
18304
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18305
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18306
|
-
*/
|
|
18307
|
-
export const KEY_USER_NOTIFICATION_UPDATED_ON = 'updated_on' as keyof UserNotification;
|
|
18308
|
-
/**
|
|
18309
|
-
* User Id
|
|
18310
|
-
*
|
|
18311
|
-
*
|
|
18312
|
-
* @type {string}
|
|
18313
|
-
*
|
|
18314
|
-
*
|
|
18315
|
-
* @remarks
|
|
18316
|
-
* This key constant provides type-safe access to the `user_id` property of UserNotification objects.
|
|
18317
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18318
|
-
*
|
|
18319
|
-
* @example
|
|
18320
|
-
* ```typescript
|
|
18321
|
-
* // Direct property access
|
|
18322
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_USER_ID];
|
|
18323
|
-
*
|
|
18324
|
-
* // Dynamic property access
|
|
18325
|
-
* const propertyName = KEY_USER_NOTIFICATION_USER_ID;
|
|
18326
|
-
* const value = usernotification[propertyName];
|
|
18327
|
-
* ```
|
|
18328
|
-
*
|
|
18329
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18330
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18331
|
-
*/
|
|
18332
|
-
export const KEY_USER_NOTIFICATION_USER_ID = 'user_id' as keyof UserNotification;
|
|
18333
|
-
/**
|
|
18334
|
-
* User Notification Id
|
|
18335
|
-
*
|
|
18336
|
-
*
|
|
18337
|
-
* @type {string}
|
|
18338
|
-
*
|
|
18339
|
-
*
|
|
18340
|
-
* @remarks
|
|
18341
|
-
* This key constant provides type-safe access to the `user_notification_id` property of UserNotification objects.
|
|
18342
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18343
|
-
*
|
|
18344
|
-
* @example
|
|
18345
|
-
* ```typescript
|
|
18346
|
-
* // Direct property access
|
|
18347
|
-
* const value = usernotification[KEY_USER_NOTIFICATION_USER_NOTIFICATION_ID];
|
|
18348
|
-
*
|
|
18349
|
-
* // Dynamic property access
|
|
18350
|
-
* const propertyName = KEY_USER_NOTIFICATION_USER_NOTIFICATION_ID;
|
|
18351
|
-
* const value = usernotification[propertyName];
|
|
18352
|
-
* ```
|
|
18353
|
-
*
|
|
18354
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18355
|
-
* @see {@link KEYS_USER_NOTIFICATION} - Array of all keys for this type
|
|
18356
|
-
*/
|
|
18357
|
-
export const KEY_USER_NOTIFICATION_USER_NOTIFICATION_ID = 'user_notification_id' as keyof UserNotification;
|
|
18358
|
-
|
|
18359
|
-
/**
|
|
18360
|
-
* Array of all UserNotification property keys
|
|
18361
|
-
*
|
|
18362
|
-
* @remarks
|
|
18363
|
-
* This constant provides a readonly array containing all valid property keys for UserNotification objects.
|
|
18364
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
18365
|
-
*
|
|
18366
|
-
* @example
|
|
18367
|
-
* ```typescript
|
|
18368
|
-
* // Iterating through all keys
|
|
18369
|
-
* for (const key of KEYS_USER_NOTIFICATION) {
|
|
18370
|
-
* console.log(`Property: ${key}, Value: ${usernotification[key]}`);
|
|
18371
|
-
* }
|
|
18372
|
-
*
|
|
18373
|
-
* // Validation
|
|
18374
|
-
* const isValidKey = KEYS_USER_NOTIFICATION.includes(someKey);
|
|
18375
|
-
* ```
|
|
18376
|
-
*
|
|
18377
|
-
* @see {@link UserNotification} - The TypeScript type definition
|
|
18378
|
-
*/
|
|
18379
|
-
export const KEYS_USER_NOTIFICATION = [
|
|
18380
|
-
KEY_USER_NOTIFICATION_CREATED_ON,
|
|
18381
|
-
KEY_USER_NOTIFICATION_NOTIFICATION,
|
|
18382
|
-
KEY_USER_NOTIFICATION_NOTIFICATION_ID,
|
|
18383
|
-
KEY_USER_NOTIFICATION_STATUS,
|
|
18384
|
-
KEY_USER_NOTIFICATION_UPDATED_ON,
|
|
18385
|
-
KEY_USER_NOTIFICATION_USER_ID,
|
|
18386
|
-
KEY_USER_NOTIFICATION_USER_NOTIFICATION_ID,
|
|
18387
|
-
] as const satisfies (keyof UserNotification)[];
|
|
18388
|
-
|
|
18389
|
-
/**
|
|
18390
|
-
* notification property
|
|
18391
|
-
*
|
|
18392
|
-
*
|
|
18393
|
-
*
|
|
18394
|
-
*
|
|
18395
|
-
* @remarks
|
|
18396
|
-
* This key constant provides type-safe access to the `notification` property of UserNotificationSummary objects.
|
|
18397
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18398
|
-
*
|
|
18399
|
-
* @example
|
|
18400
|
-
* ```typescript
|
|
18401
|
-
* // Direct property access
|
|
18402
|
-
* const value = usernotificationsummary[KEY_USER_NOTIFICATION_SUMMARY_NOTIFICATION];
|
|
18403
|
-
*
|
|
18404
|
-
* // Dynamic property access
|
|
18405
|
-
* const propertyName = KEY_USER_NOTIFICATION_SUMMARY_NOTIFICATION;
|
|
18406
|
-
* const value = usernotificationsummary[propertyName];
|
|
18407
|
-
* ```
|
|
18408
|
-
*
|
|
18409
|
-
* @see {@link UserNotificationSummary} - The TypeScript type definition
|
|
18410
|
-
* @see {@link KEYS_USER_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
18411
|
-
*/
|
|
18412
|
-
export const KEY_USER_NOTIFICATION_SUMMARY_NOTIFICATION = 'notification' as keyof UserNotificationSummary;
|
|
18413
|
-
/**
|
|
18414
|
-
* status property
|
|
18415
|
-
*
|
|
18416
|
-
* Whether the user has read the notification
|
|
18417
|
-
*
|
|
18418
|
-
*
|
|
18419
|
-
*
|
|
18420
|
-
* @remarks
|
|
18421
|
-
* This key constant provides type-safe access to the `status` property of UserNotificationSummary objects.
|
|
18422
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18423
|
-
*
|
|
18424
|
-
* @example
|
|
18425
|
-
* ```typescript
|
|
18426
|
-
* // Direct property access
|
|
18427
|
-
* const value = usernotificationsummary[KEY_USER_NOTIFICATION_SUMMARY_STATUS];
|
|
18428
|
-
*
|
|
18429
|
-
* // Dynamic property access
|
|
18430
|
-
* const propertyName = KEY_USER_NOTIFICATION_SUMMARY_STATUS;
|
|
18431
|
-
* const value = usernotificationsummary[propertyName];
|
|
18432
|
-
* ```
|
|
18433
|
-
*
|
|
18434
|
-
* @see {@link UserNotificationSummary} - The TypeScript type definition
|
|
18435
|
-
* @see {@link KEYS_USER_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
18436
|
-
*/
|
|
18437
|
-
export const KEY_USER_NOTIFICATION_SUMMARY_STATUS = 'status' as keyof UserNotificationSummary;
|
|
18438
|
-
/**
|
|
18439
|
-
* User Notification Id
|
|
18440
|
-
*
|
|
18441
|
-
*
|
|
18442
|
-
* @type {string}
|
|
18443
|
-
*
|
|
18444
|
-
*
|
|
18445
|
-
* @remarks
|
|
18446
|
-
* This key constant provides type-safe access to the `user_notification_id` property of UserNotificationSummary objects.
|
|
18447
|
-
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18448
|
-
*
|
|
18449
|
-
* @example
|
|
18450
|
-
* ```typescript
|
|
18451
|
-
* // Direct property access
|
|
18452
|
-
* const value = usernotificationsummary[KEY_USER_NOTIFICATION_SUMMARY_USER_NOTIFICATION_ID];
|
|
18453
|
-
*
|
|
18454
|
-
* // Dynamic property access
|
|
18455
|
-
* const propertyName = KEY_USER_NOTIFICATION_SUMMARY_USER_NOTIFICATION_ID;
|
|
18456
|
-
* const value = usernotificationsummary[propertyName];
|
|
18457
|
-
* ```
|
|
18458
|
-
*
|
|
18459
|
-
* @see {@link UserNotificationSummary} - The TypeScript type definition
|
|
18460
|
-
* @see {@link KEYS_USER_NOTIFICATION_SUMMARY} - Array of all keys for this type
|
|
18461
|
-
*/
|
|
18462
|
-
export const KEY_USER_NOTIFICATION_SUMMARY_USER_NOTIFICATION_ID = 'user_notification_id' as keyof UserNotificationSummary;
|
|
18463
|
-
|
|
18464
|
-
/**
|
|
18465
|
-
* Array of all UserNotificationSummary property keys
|
|
18466
|
-
*
|
|
18467
|
-
* @remarks
|
|
18468
|
-
* This constant provides a readonly array containing all valid property keys for UserNotificationSummary objects.
|
|
18469
|
-
* Useful for iteration, validation, and generating dynamic UI components.
|
|
18470
|
-
*
|
|
18471
|
-
* @example
|
|
18472
|
-
* ```typescript
|
|
18473
|
-
* // Iterating through all keys
|
|
18474
|
-
* for (const key of KEYS_USER_NOTIFICATION_SUMMARY) {
|
|
18475
|
-
* console.log(`Property: ${key}, Value: ${usernotificationsummary[key]}`);
|
|
18476
|
-
* }
|
|
18477
|
-
*
|
|
18478
|
-
* // Validation
|
|
18479
|
-
* const isValidKey = KEYS_USER_NOTIFICATION_SUMMARY.includes(someKey);
|
|
18480
|
-
* ```
|
|
18481
|
-
*
|
|
18482
|
-
* @see {@link UserNotificationSummary} - The TypeScript type definition
|
|
18483
|
-
*/
|
|
18484
|
-
export const KEYS_USER_NOTIFICATION_SUMMARY = [
|
|
18485
|
-
KEY_USER_NOTIFICATION_SUMMARY_NOTIFICATION,
|
|
18486
|
-
KEY_USER_NOTIFICATION_SUMMARY_STATUS,
|
|
18487
|
-
KEY_USER_NOTIFICATION_SUMMARY_USER_NOTIFICATION_ID,
|
|
18488
|
-
] as const satisfies (keyof UserNotificationSummary)[];
|
|
18489
|
-
|
|
18490
17267
|
/**
|
|
18491
17268
|
* Message
|
|
18492
17269
|
*
|