@acorex-platform/module-tenant-management-client 0.0.32 → 0.0.37

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.
Files changed (31) hide show
  1. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-resource-share.mjs +155 -0
  2. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-resource-share.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user-app-access.mjs +265 -0
  4. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user-app-access.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user.mjs +477 -0
  6. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant.mjs +955 -0
  8. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entities-tenant.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-acorex-platform-module-tenant-management-client-contracts-entity-catalog-B0MyR5Is.mjs +89 -0
  10. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-acorex-platform-module-tenant-management-client-contracts-entity-catalog-B0MyR5Is.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-resource-share.entity-dA48_ABN.mjs +88 -0
  12. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-resource-share.entity-dA48_ABN.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant-user-app-access.entity-N85w0RhR.mjs +198 -0
  14. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant-user-app-access.entity-N85w0RhR.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant-user.entity-CbMSYjOJ.mjs +410 -0
  16. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant-user.entity-CbMSYjOJ.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant.entity-CDdbAR-0.mjs +888 -0
  18. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant.entity-CDdbAR-0.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog.mjs +2 -0
  20. package/fesm2022/acorex-platform-module-tenant-management-client-contracts-entity-catalog.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-tenant-management-client-contracts.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-module-tenant-management-client-local-entities.mjs +32 -0
  23. package/fesm2022/acorex-platform-module-tenant-management-client-local-entities.mjs.map +1 -0
  24. package/fesm2022/acorex-platform-module-tenant-management-client.mjs.map +1 -1
  25. package/package.json +25 -1
  26. package/types/acorex-platform-module-tenant-management-client-contracts-entities-resource-share.d.ts +12 -0
  27. package/types/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user-app-access.d.ts +5 -0
  28. package/types/acorex-platform-module-tenant-management-client-contracts-entities-tenant-user.d.ts +5 -0
  29. package/types/acorex-platform-module-tenant-management-client-contracts-entities-tenant.d.ts +5 -0
  30. package/types/acorex-platform-module-tenant-management-client-contracts-entity-catalog.d.ts +10 -0
  31. package/types/acorex-platform-module-tenant-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,888 @@
1
+ import { AXPSystemActionType, AXPWidgetsCatalog, AXPWidgetsList, AXPRegionalSetting } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, AXPEntityCommandScope, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-tenant-management-client-contracts-entity-catalog-acorex-platform-module-tenant-management-client-contracts-entity-catalog-B0MyR5Is.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Tenant Entity Factory ----
7
+ async function tenantEntityFactory() {
8
+ const i18n = RootConfig.config.i18n + ':tenants.entities.tenant';
9
+ const entityDef = {
10
+ module: RootConfig.module.name,
11
+ name: RootConfig.entities.tenant.name,
12
+ icon: RootConfig.entities.tenant.icon,
13
+ title: RootConfig.entities.tenant.title,
14
+ plugins: [
15
+ {
16
+ name: 'status',
17
+ options: {
18
+ field: 'statusId',
19
+ definition: 'tenant-management.status.tenant',
20
+ },
21
+ },
22
+ {
23
+ name: 'notes',
24
+ },
25
+ ],
26
+ formats: {
27
+ individual: RootConfig.entities.tenant.title,
28
+ plural: RootConfig.entities.tenant.titlePlural,
29
+ searchResult: {
30
+ title: '{{ title }}',
31
+ description: RootConfig.module.title,
32
+ },
33
+ },
34
+ groups: [
35
+ {
36
+ id: 'basic-info',
37
+ title: `@${i18n}.groups.basic-info`,
38
+ },
39
+ {
40
+ id: 'logo',
41
+ title: `@${i18n}.fields.logo.title`,
42
+ },
43
+ {
44
+ id: 'contact-info',
45
+ title: `@${i18n}.groups.contact-info`,
46
+ },
47
+ {
48
+ id: 'location-info',
49
+ title: `@${i18n}.groups.location-info`,
50
+ },
51
+ {
52
+ id: 'domain-info',
53
+ title: `@${i18n}.groups.domain-info`,
54
+ },
55
+ {
56
+ id: 'administrative',
57
+ title: `@${i18n}.groups.administrative`,
58
+ },
59
+ ],
60
+ properties: [
61
+ {
62
+ name: 'name',
63
+ title: `@${i18n}.fields.name.title`,
64
+ groupId: 'basic-info',
65
+ options: {
66
+ sort: {
67
+ enabled: true,
68
+ },
69
+ filter: {
70
+ advance: {
71
+ enabled: true,
72
+ },
73
+ inline: {
74
+ enabled: true,
75
+ },
76
+ },
77
+ },
78
+ schema: {
79
+ dataType: 'string',
80
+ interface: {
81
+ type: AXPWidgetsCatalog.text,
82
+ options: {
83
+ placeholder: `@${i18n}.fields.name.placeholder`,
84
+ },
85
+ },
86
+ },
87
+ validations: [
88
+ {
89
+ rule: 'required',
90
+ },
91
+ ],
92
+ },
93
+ {
94
+ name: 'title',
95
+ title: `@${i18n}.fields.title.title`,
96
+ groupId: 'basic-info',
97
+ options: {
98
+ sort: {
99
+ enabled: true,
100
+ },
101
+ filter: {
102
+ advance: {
103
+ enabled: true,
104
+ },
105
+ inline: {
106
+ enabled: true,
107
+ },
108
+ },
109
+ },
110
+ schema: {
111
+ dataType: 'object',
112
+ interface: {
113
+ type: AXPWidgetsCatalog.text,
114
+ options: {
115
+ placeholder: `@${i18n}.fields.title.placeholder`,
116
+ multiLanguage: true,
117
+ },
118
+ },
119
+ },
120
+ validations: [
121
+ {
122
+ rule: 'required',
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ name: 'description',
128
+ title: `@${i18n}.fields.description.title`,
129
+ groupId: 'basic-info',
130
+ options: {
131
+ sort: {
132
+ enabled: true,
133
+ },
134
+ filter: {
135
+ advance: {
136
+ enabled: true,
137
+ },
138
+ inline: {
139
+ enabled: false,
140
+ },
141
+ },
142
+ },
143
+ schema: {
144
+ dataType: 'object',
145
+ interface: {
146
+ type: AXPWidgetsCatalog.largeText,
147
+ options: {
148
+ placeholder: `@${i18n}.fields.description.placeholder`,
149
+ multiLanguage: true,
150
+ },
151
+ },
152
+ },
153
+ },
154
+ {
155
+ name: 'logo',
156
+ title: `@${i18n}.fields.logo.title`,
157
+ groupId: 'logo',
158
+ options: {
159
+ sort: {
160
+ enabled: false,
161
+ },
162
+ filter: {
163
+ advance: {
164
+ enabled: false,
165
+ },
166
+ inline: {
167
+ enabled: false,
168
+ },
169
+ },
170
+ },
171
+ schema: {
172
+ dataType: 'string',
173
+ interface: {
174
+ type: AXPWidgetsList.Advanced.Image,
175
+ options: {
176
+ type: 'profile-photo',
177
+ },
178
+ },
179
+ },
180
+ },
181
+ {
182
+ name: 'email',
183
+ title: `@${i18n}.fields.email.title`,
184
+ groupId: 'contact-info',
185
+ options: {
186
+ sort: {
187
+ enabled: true,
188
+ },
189
+ filter: {
190
+ advance: {
191
+ enabled: true,
192
+ },
193
+ inline: {
194
+ enabled: true,
195
+ },
196
+ },
197
+ },
198
+ schema: {
199
+ dataType: 'string',
200
+ interface: {
201
+ type: AXPWidgetsList.Editors.ContactBox,
202
+ options: {
203
+ type: 'email',
204
+ hasLabel: false,
205
+ placeholder: `@${i18n}.fields.email.placeholder`,
206
+ },
207
+ },
208
+ },
209
+ },
210
+ {
211
+ name: 'phone',
212
+ title: `@${i18n}.fields.phone.title`,
213
+ groupId: 'contact-info',
214
+ options: {
215
+ sort: {
216
+ enabled: true,
217
+ },
218
+ filter: {
219
+ advance: {
220
+ enabled: true,
221
+ },
222
+ inline: {
223
+ enabled: true,
224
+ },
225
+ },
226
+ },
227
+ schema: {
228
+ dataType: 'string',
229
+ interface: {
230
+ type: AXPWidgetsList.Editors.ContactBox,
231
+ options: {
232
+ type: 'phone',
233
+ hasLabel: false,
234
+ placeholder: `@${i18n}.fields.phone.placeholder`,
235
+ },
236
+ },
237
+ },
238
+ },
239
+ {
240
+ name: 'website',
241
+ title: `@${i18n}.fields.website.title`,
242
+ groupId: 'contact-info',
243
+ options: {
244
+ sort: {
245
+ enabled: true,
246
+ },
247
+ filter: {
248
+ advance: {
249
+ enabled: true,
250
+ },
251
+ inline: {
252
+ enabled: false,
253
+ },
254
+ },
255
+ },
256
+ schema: {
257
+ dataType: 'string',
258
+ interface: {
259
+ type: AXPWidgetsList.Editors.ContactBox,
260
+ options: {
261
+ type: 'url',
262
+ hasLabel: false,
263
+ placeholder: `@${i18n}.fields.website.placeholder`,
264
+ },
265
+ },
266
+ },
267
+ },
268
+ {
269
+ name: 'supportEmail',
270
+ title: `@${i18n}.fields.support-email.title`,
271
+ groupId: 'contact-info',
272
+ options: {
273
+ sort: {
274
+ enabled: true,
275
+ },
276
+ filter: {
277
+ advance: {
278
+ enabled: true,
279
+ },
280
+ inline: {
281
+ enabled: false,
282
+ },
283
+ },
284
+ },
285
+ schema: {
286
+ dataType: 'string',
287
+ interface: {
288
+ type: AXPWidgetsList.Editors.ContactBox,
289
+ options: {
290
+ type: 'email',
291
+ hasLabel: false,
292
+ placeholder: `@${i18n}.fields.support-email.placeholder`,
293
+ },
294
+ },
295
+ },
296
+ },
297
+ {
298
+ name: 'countryId',
299
+ title: `@${i18n}.fields.country.title`,
300
+ groupId: 'location-info',
301
+ options: {
302
+ sort: {
303
+ enabled: true,
304
+ },
305
+ filter: {
306
+ advance: {
307
+ enabled: true,
308
+ },
309
+ inline: {
310
+ enabled: true,
311
+ },
312
+ },
313
+ },
314
+ schema: {
315
+ dataType: 'string',
316
+ interface: {
317
+ type: AXPWidgetsList.Editors.LookupBox,
318
+ options: {
319
+ entity: `${"LocationManagement"}.${"GeographicRegion"}`,
320
+ textField: 'title',
321
+ valueField: 'id',
322
+ look: 'select',
323
+ expose: [
324
+ { source: 'id', target: 'country.id' },
325
+ { source: 'title', target: 'country.title' },
326
+ ],
327
+ filter: {
328
+ logic: 'and',
329
+ filters: [{ field: 'type.code', operator: { type: 'equal' }, value: 'country' }],
330
+ },
331
+ },
332
+ },
333
+ },
334
+ },
335
+ {
336
+ name: 'stateId',
337
+ title: `@${i18n}.fields.state.title`,
338
+ groupId: 'location-info',
339
+ options: {
340
+ sort: {
341
+ enabled: true,
342
+ },
343
+ filter: {
344
+ advance: {
345
+ enabled: true,
346
+ },
347
+ inline: {
348
+ enabled: true,
349
+ },
350
+ },
351
+ },
352
+ schema: {
353
+ dataType: 'string',
354
+ interface: {
355
+ type: AXPWidgetsList.Editors.LookupBox,
356
+ options: {
357
+ entity: `${"LocationManagement"}.${"GeographicRegion"}`,
358
+ textField: 'title',
359
+ valueField: 'id',
360
+ look: 'select',
361
+ disabled: '{{ !context.eval("countryId") }}',
362
+ expose: [
363
+ { source: 'id', target: 'state.id' },
364
+ { source: 'title', target: 'state.title' },
365
+ ],
366
+ filter: {
367
+ logic: 'and',
368
+ filters: [
369
+ { field: 'parentId', operator: { type: 'equal' }, value: '{{ context.eval("countryId") }}' },
370
+ { field: 'type.code', operator: { type: 'equal' }, value: 'state' },
371
+ ],
372
+ },
373
+ },
374
+ triggers: [
375
+ {
376
+ event: "{{ events.context('countryId') }}",
377
+ action: `{{ widget.setValue(null); context.set('state.title', null); context.set('cityId', null); context.set('city.id', null); context.set('city.title', null); widget.refresh(); }}`,
378
+ },
379
+ ],
380
+ },
381
+ },
382
+ },
383
+ {
384
+ name: 'cityId',
385
+ title: `@${i18n}.fields.city.title`,
386
+ groupId: 'location-info',
387
+ options: {
388
+ sort: {
389
+ enabled: true,
390
+ },
391
+ filter: {
392
+ advance: {
393
+ enabled: true,
394
+ },
395
+ inline: {
396
+ enabled: true,
397
+ },
398
+ },
399
+ },
400
+ schema: {
401
+ dataType: 'string',
402
+ interface: {
403
+ type: AXPWidgetsList.Editors.LookupBox,
404
+ options: {
405
+ entity: `${"LocationManagement"}.${"GeographicRegion"}`,
406
+ textField: 'title',
407
+ valueField: 'id',
408
+ look: 'select',
409
+ disabled: '{{ !context.eval("stateId") }}',
410
+ expose: [
411
+ { source: 'id', target: 'city.id' },
412
+ { source: 'title', target: 'city.title' },
413
+ ],
414
+ filter: {
415
+ logic: 'and',
416
+ filters: [
417
+ { field: 'parentId', operator: { type: 'equal' }, value: '{{ context.eval("stateId") }}' },
418
+ { field: 'type.code', operator: { type: 'equal' }, value: 'city' },
419
+ ],
420
+ },
421
+ },
422
+ triggers: [
423
+ {
424
+ event: "{{ events.context('stateId') }}",
425
+ action: `{{ widget.setValue(null); context.set('city.title', null); widget.refresh(); }}`,
426
+ },
427
+ {
428
+ event: "{{ events.context('countryId') }}",
429
+ action: `{{ widget.setValue(null); context.set('city.title', null); widget.refresh(); }}`,
430
+ },
431
+ ],
432
+ },
433
+ },
434
+ },
435
+ {
436
+ name: 'timezone',
437
+ title: `@${i18n}.fields.timezone.title`,
438
+ groupId: 'location-info',
439
+ options: {
440
+ sort: {
441
+ enabled: true,
442
+ },
443
+ filter: {
444
+ advance: {
445
+ enabled: true,
446
+ },
447
+ inline: {
448
+ enabled: true,
449
+ },
450
+ },
451
+ },
452
+ schema: {
453
+ dataType: 'string',
454
+ defaultValue: `{{ settings.get('${AXPRegionalSetting.TimeZone}') }}`,
455
+ interface: {
456
+ type: AXPWidgetsCatalog.lookup,
457
+ options: {
458
+ entity: 'LocaleManagement.Timezones',
459
+ look: 'select',
460
+ allowSearch: true,
461
+ valueField: 'code',
462
+ textField: 'title',
463
+ filter: {
464
+ logic: 'and',
465
+ filters: [{ field: 'isActive', operator: { type: 'equal' }, value: true }],
466
+ },
467
+ },
468
+ },
469
+ },
470
+ },
471
+ {
472
+ name: 'language',
473
+ title: `@${i18n}.fields.language.title`,
474
+ groupId: 'location-info',
475
+ options: {
476
+ sort: {
477
+ enabled: true,
478
+ },
479
+ filter: {
480
+ advance: {
481
+ enabled: true,
482
+ },
483
+ inline: {
484
+ enabled: true,
485
+ },
486
+ },
487
+ },
488
+ schema: {
489
+ dataType: 'string',
490
+ interface: {
491
+ type: AXPWidgetsList.Editors.LookupBox,
492
+ options: {
493
+ entity: `${"LocaleManagement"}.${"Locales"}`,
494
+ textField: 'title',
495
+ valueField: 'code',
496
+ look: 'select',
497
+ expose: [
498
+ { source: 'code', target: 'language.code' },
499
+ { source: 'title', target: 'language.title' },
500
+ ],
501
+ },
502
+ },
503
+ },
504
+ },
505
+ {
506
+ name: 'domain',
507
+ title: `@${i18n}.fields.domain.title`,
508
+ groupId: 'domain-info',
509
+ options: {
510
+ sort: {
511
+ enabled: true,
512
+ },
513
+ filter: {
514
+ advance: {
515
+ enabled: true,
516
+ },
517
+ inline: {
518
+ enabled: true,
519
+ },
520
+ },
521
+ },
522
+ schema: {
523
+ dataType: 'string',
524
+ interface: {
525
+ type: AXPWidgetsCatalog.text,
526
+ options: {
527
+ placeholder: `@${i18n}.fields.domain.placeholder`,
528
+ },
529
+ },
530
+ },
531
+ },
532
+ {
533
+ name: 'subdomain',
534
+ title: `@${i18n}.fields.subdomain.title`,
535
+ groupId: 'domain-info',
536
+ options: {
537
+ sort: {
538
+ enabled: true,
539
+ },
540
+ filter: {
541
+ advance: {
542
+ enabled: true,
543
+ },
544
+ inline: {
545
+ enabled: true,
546
+ },
547
+ },
548
+ },
549
+ schema: {
550
+ dataType: 'string',
551
+ interface: {
552
+ type: AXPWidgetsCatalog.text,
553
+ options: {
554
+ placeholder: `@${i18n}.fields.subdomain.placeholder`,
555
+ },
556
+ },
557
+ },
558
+ },
559
+ {
560
+ name: 'registrationDate',
561
+ title: `@${i18n}.fields.registration-date.title`,
562
+ groupId: 'administrative',
563
+ options: {
564
+ sort: {
565
+ enabled: true,
566
+ },
567
+ filter: {
568
+ advance: {
569
+ enabled: true,
570
+ },
571
+ inline: {
572
+ enabled: true,
573
+ },
574
+ },
575
+ },
576
+ schema: {
577
+ dataType: 'date',
578
+ interface: {
579
+ type: AXPWidgetsCatalog.dateTime,
580
+ options: {
581
+ showTime: false,
582
+ },
583
+ },
584
+ },
585
+ },
586
+ {
587
+ name: 'expiryDate',
588
+ title: `@${i18n}.fields.expiry-date.title`,
589
+ groupId: 'administrative',
590
+ options: {
591
+ sort: {
592
+ enabled: true,
593
+ },
594
+ filter: {
595
+ advance: {
596
+ enabled: true,
597
+ },
598
+ inline: {
599
+ enabled: true,
600
+ },
601
+ },
602
+ },
603
+ schema: {
604
+ dataType: 'date',
605
+ interface: {
606
+ type: AXPWidgetsCatalog.dateTime,
607
+ options: {
608
+ showTime: false,
609
+ },
610
+ },
611
+ },
612
+ },
613
+ {
614
+ name: 'isPlatform',
615
+ title: `@${i18n}.fields.is-platform.title`,
616
+ groupId: 'administrative',
617
+ options: {
618
+ sort: {
619
+ enabled: true,
620
+ },
621
+ filter: {
622
+ advance: {
623
+ enabled: true,
624
+ },
625
+ inline: {
626
+ enabled: true,
627
+ },
628
+ },
629
+ },
630
+ schema: {
631
+ dataType: 'boolean',
632
+ interface: {
633
+ type: AXPWidgetsList.Editors.ToggleSwitch,
634
+ },
635
+ },
636
+ },
637
+ {
638
+ name: 'industryId',
639
+ title: `@${i18n}.fields.industry.title`,
640
+ groupId: 'administrative',
641
+ options: {
642
+ sort: {
643
+ enabled: true,
644
+ },
645
+ filter: {
646
+ advance: {
647
+ enabled: true,
648
+ },
649
+ inline: {
650
+ enabled: true,
651
+ },
652
+ },
653
+ },
654
+ schema: {
655
+ dataType: 'string',
656
+ interface: {
657
+ type: AXPWidgetsList.Editors.LookupBox,
658
+ options: {
659
+ entity: 'BusinessCore.Industry',
660
+ textField: 'title',
661
+ valueField: 'id',
662
+ look: 'select',
663
+ expose: [
664
+ { source: 'id', target: 'industry.id' },
665
+ { source: 'title', target: 'industry.title' },
666
+ { source: 'code', target: 'industry.code' },
667
+ ],
668
+ },
669
+ },
670
+ },
671
+ },
672
+ {
673
+ name: 'maxUsers',
674
+ title: `@${i18n}.fields.max-users.title`,
675
+ groupId: 'administrative',
676
+ options: {
677
+ sort: {
678
+ enabled: true,
679
+ },
680
+ filter: {
681
+ advance: {
682
+ enabled: true,
683
+ },
684
+ inline: {
685
+ enabled: true,
686
+ },
687
+ },
688
+ },
689
+ schema: {
690
+ dataType: 'number',
691
+ interface: {
692
+ type: AXPWidgetsCatalog.number,
693
+ options: {
694
+ minValue: 0,
695
+ placeholder: `@${i18n}.fields.max-users.placeholder`,
696
+ },
697
+ },
698
+ },
699
+ },
700
+ {
701
+ name: 'maxStorage',
702
+ title: `@${i18n}.fields.max-storage.title`,
703
+ groupId: 'administrative',
704
+ options: {
705
+ sort: {
706
+ enabled: true,
707
+ },
708
+ filter: {
709
+ advance: {
710
+ enabled: true,
711
+ },
712
+ inline: {
713
+ enabled: true,
714
+ },
715
+ },
716
+ },
717
+ schema: {
718
+ dataType: 'number',
719
+ interface: {
720
+ type: AXPWidgetsCatalog.number,
721
+ options: {
722
+ minValue: 0,
723
+ placeholder: `@${i18n}.fields.max-storage.placeholder`,
724
+ },
725
+ },
726
+ },
727
+ },
728
+ ],
729
+ relatedEntities: [
730
+ {
731
+ entity: `${"SubscriptionManagement"}.${"Subscription"}`,
732
+ title: `@${RootConfig.config.i18n}:tenants.entities.related-entities.subscriptions.title`,
733
+ icon: "fa-light fa-credit-card",
734
+ columns: ['planId', 'statusId', 'startDate', 'endDate'],
735
+ persistence: { foreignKeyField: 'subscriberId' },
736
+ conditions: [
737
+ { name: 'subscriberType', operator: { type: 'equal' }, value: 'Tenant' },
738
+ { name: 'subscriberId', operator: { type: 'equal' }, value: '{{ context.eval("id") }}' },
739
+ ],
740
+ actions: [...entityDetailsCrudActions('subscriberId')],
741
+ layout: { type: 'page-list', position: 'after', order: 1 },
742
+ },
743
+ {
744
+ entity: `${RootConfig.module.name}.${RootConfig.entities.tenantUser.name}`,
745
+ title: `@${RootConfig.config.i18n}:tenants.entities.related-entities.tenant-users.title`,
746
+ icon: RootConfig.entities.tenantUser.icon,
747
+ columns: ['userId', 'statusId', 'startDate', 'endDate', 'isAccountHolder'],
748
+ conditions: [{ name: 'tenantId', operator: { type: 'equal' }, value: '{{ context.eval("id") }}' }],
749
+ actions: [
750
+ ...entityDetailsCrudActions('tenantId'),
751
+ {
752
+ name: 'create-tenant-user',
753
+ title: '@tenant-management:tenants.actions.create-tenant-user.title',
754
+ icon: 'fa-light fa-user-plus',
755
+ command: {
756
+ name: 'TenantManagement.Tenant:CreateTenantUser',
757
+ options: {
758
+ tenantId: '{{ context.eval("id") }}',
759
+ },
760
+ },
761
+ priority: 'primary',
762
+ type: AXPSystemActionType.Create,
763
+ scope: AXPEntityCommandScope.TypeLevel,
764
+ },
765
+ ],
766
+ layout: { type: 'page-list', position: 'after', order: 2 },
767
+ },
768
+ ],
769
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'statusId' }, { name: 'email' }, { name: 'domain' }],
770
+ interfaces: {
771
+ master: {
772
+ create: {
773
+ sections: [
774
+ { id: 'basic-info', order: 1 },
775
+ { id: 'logo', order: 1 },
776
+ { id: 'contact-info', order: 2 },
777
+ { id: 'location-info', order: 3 },
778
+ { id: 'domain-info', order: 4 },
779
+ { id: 'administrative', order: 5 },
780
+ ],
781
+ properties: [
782
+ { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
783
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
784
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
785
+ { name: 'logo', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },
786
+ { name: 'email', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
787
+ { name: 'phone', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
788
+ { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
789
+ { name: 'supportEmail', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
790
+ { name: 'countryId', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
791
+ { name: 'stateId', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
792
+ { name: 'cityId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
793
+ { name: 'timezone', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
794
+ { name: 'language', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
795
+ { name: 'domain', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
796
+ { name: 'subdomain', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
797
+ { name: 'registrationDate', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
798
+ { name: 'isPlatform', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
799
+ { name: 'industryId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
800
+ { name: 'expiryDate', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
801
+ { name: 'maxUsers', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
802
+ { name: 'maxStorage', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
803
+ ],
804
+ },
805
+ update: {
806
+ sections: [
807
+ { id: 'basic-info', order: 1 },
808
+ { id: 'logo', order: 1 },
809
+ { id: 'contact-info', order: 2 },
810
+ { id: 'location-info', order: 3 },
811
+ { id: 'domain-info', order: 4 },
812
+ { id: 'administrative', order: 5 },
813
+ ],
814
+ properties: [
815
+ { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
816
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
817
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
818
+ { name: 'logo', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },
819
+ { name: 'email', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
820
+ { name: 'phone', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
821
+ { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
822
+ { name: 'supportEmail', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
823
+ { name: 'countryId', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
824
+ { name: 'stateId', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
825
+ { name: 'cityId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
826
+ { name: 'timezone', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
827
+ { name: 'language', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
828
+ { name: 'domain', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
829
+ { name: 'subdomain', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
830
+ { name: 'registrationDate', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
831
+ { name: 'isPlatform', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
832
+ { name: 'industryId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
833
+ { name: 'expiryDate', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
834
+ { name: 'maxUsers', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
835
+ { name: 'maxStorage', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
836
+ ],
837
+ },
838
+ single: {
839
+ title: '{{title}}',
840
+ sections: [
841
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
842
+ { id: 'logo', order: 1, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
843
+ { id: 'contact-info', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
844
+ { id: 'location-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
845
+ { id: 'domain-info', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
846
+ { id: 'administrative', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
847
+ ],
848
+ properties: [
849
+ { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
850
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
851
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
852
+ { name: 'logo', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },
853
+ { name: 'email', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
854
+ { name: 'phone', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
855
+ { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
856
+ { name: 'supportEmail', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
857
+ { name: 'countryId', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
858
+ { name: 'stateId', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
859
+ { name: 'cityId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
860
+ { name: 'timezone', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
861
+ { name: 'language', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
862
+ { name: 'domain', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
863
+ { name: 'subdomain', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
864
+ { name: 'isPlatform', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
865
+ { name: 'industryId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
866
+ { name: 'expiryDate', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
867
+ { name: 'maxUsers', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
868
+ { name: 'maxStorage', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
869
+ ],
870
+ actions: [...entityMasterRecordActions()],
871
+ },
872
+ list: {
873
+ actions: [...entityMasterCrudActions()],
874
+ views: [
875
+ createAllQueryView({
876
+ sorts: [{ name: 'title', dir: 'asc' }],
877
+ }),
878
+ ],
879
+ },
880
+ },
881
+ },
882
+ };
883
+ return entityDef;
884
+ }
885
+ //#endregion
886
+
887
+ export { tenantEntityFactory };
888
+ //# sourceMappingURL=acorex-platform-module-tenant-management-client-contracts-entity-catalog-tenant.entity-CDdbAR-0.mjs.map