@flarehr/superhero-basic-profile 0.1.2217 → 0.1.2219

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 (76) hide show
  1. package/dist/assets/delete.dcc7b157.svg +5 -0
  2. package/dist/assets/dialog-warning.cc77f3ba.svg +5 -0
  3. package/dist/assets/pencil.05fe6be6.svg +5 -0
  4. package/dist/index.html +20 -0
  5. package/dist/superhero-basic-profile.js +50 -0
  6. package/package.json +1 -1
  7. package/dist/App.jsx +0 -4
  8. package/dist/Basic.Profile.Domain/AnalyticsEvent.jsx +0 -102
  9. package/dist/Basic.Profile.Domain/Audit.jsx +0 -149
  10. package/dist/Basic.Profile.Domain/Commands.jsx +0 -68
  11. package/dist/Basic.Profile.Domain/CommonTypes.jsx +0 -194
  12. package/dist/Basic.Profile.Domain/Config/Api/Admin/Read.jsx +0 -58
  13. package/dist/Basic.Profile.Domain/Config/Api/Admin/Write.jsx +0 -23
  14. package/dist/Basic.Profile.Domain/Config/Api/FlareAdminShell/Read.jsx +0 -35
  15. package/dist/Basic.Profile.Domain/Config/Commands.jsx +0 -72
  16. package/dist/Basic.Profile.Domain/Config/ConfigCommandHandler.jsx +0 -197
  17. package/dist/Basic.Profile.Domain/Config/Dto.jsx +0 -181
  18. package/dist/Basic.Profile.Domain/Config/Types.jsx +0 -152
  19. package/dist/Basic.Profile.Domain/DateTimeProvider.jsx +0 -23
  20. package/dist/Basic.Profile.Domain/DomainAggregates.jsx +0 -801
  21. package/dist/Basic.Profile.Domain/DomainPrimitives.jsx +0 -426
  22. package/dist/Basic.Profile.Domain/Dto/Aggregates.jsx +0 -564
  23. package/dist/Basic.Profile.Domain/Dto/AnalyticsEvent.jsx +0 -157
  24. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Common.jsx +0 -102
  25. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Read.jsx +0 -85
  26. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Write.jsx +0 -16
  27. package/dist/Basic.Profile.Domain/Dto/Api/Common.jsx +0 -427
  28. package/dist/Basic.Profile.Domain/Dto/Api/External/Read.jsx +0 -118
  29. package/dist/Basic.Profile.Domain/Dto/Api/External/ReadV2.jsx +0 -6
  30. package/dist/Basic.Profile.Domain/Dto/Api/External/Write.jsx +0 -184
  31. package/dist/Basic.Profile.Domain/Dto/Api/External/WriteV2.jsx +0 -439
  32. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Read.jsx +0 -38
  33. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Write.jsx +0 -199
  34. package/dist/Basic.Profile.Domain/Dto/Api/Internal/Read.jsx +0 -125
  35. package/dist/Basic.Profile.Domain/Dto/Audit.jsx +0 -121
  36. package/dist/Basic.Profile.Domain/Dto/Commands.jsx +0 -256
  37. package/dist/Basic.Profile.Domain/Dto/Common.jsx +0 -84
  38. package/dist/Basic.Profile.Domain/Dto/Events.jsx +0 -220
  39. package/dist/Basic.Profile.Domain/Dto/Primitives.jsx +0 -580
  40. package/dist/Basic.Profile.Domain/Dto/ProfileCreationModels.jsx +0 -324
  41. package/dist/Basic.Profile.Domain/Dto/Validation.jsx +0 -229
  42. package/dist/Basic.Profile.Domain/Events.jsx +0 -64
  43. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Read.jsx +0 -140
  44. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Validation.jsx +0 -499
  45. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Write.jsx +0 -51
  46. package/dist/Basic.Profile.Domain/Import/Api/Read.jsx +0 -154
  47. package/dist/Basic.Profile.Domain/Import/CommonTypes.jsx +0 -187
  48. package/dist/Basic.Profile.Domain/Import/Dto.jsx +0 -475
  49. package/dist/Basic.Profile.Domain/Import/ImportCommandHandler.jsx +0 -531
  50. package/dist/Basic.Profile.Domain/Import/Types.jsx +0 -405
  51. package/dist/Basic.Profile.Domain/JwtPayload.jsx +0 -44
  52. package/dist/Basic.Profile.Domain/Metadata.jsx +0 -257
  53. package/dist/Basic.Profile.Domain/ProfileCommandHandler.jsx +0 -261
  54. package/dist/Basic.Profile.Domain/ProfileModels.jsx +0 -59
  55. package/dist/Basic.Profile.Domain/Utils.jsx +0 -372
  56. package/dist/Common/PreactCustomElement.jsx +0 -8
  57. package/dist/Common/Resources.jsx +0 -20
  58. package/dist/Common/Tailwind.jsx +0 -8
  59. package/dist/Common/Utils.jsx +0 -18
  60. package/dist/Directory/App.jsx +0 -192
  61. package/dist/Directory/BackendServices/Common.jsx +0 -115
  62. package/dist/Directory/BackendServices/ConfigService.jsx +0 -168
  63. package/dist/Directory/BackendServices/ImportService.jsx +0 -137
  64. package/dist/Directory/Common.jsx +0 -93
  65. package/dist/Directory/Config/Components.jsx +0 -173
  66. package/dist/Directory/Config/Types.jsx +0 -187
  67. package/dist/Directory/PastImports/PastImports.jsx +0 -81
  68. package/dist/Directory/ProfileImport/ProfileImport.jsx +0 -284
  69. package/dist/Directory/ProfileImport/Types.jsx +0 -91
  70. package/dist/Directory/TabNav.jsx +0 -24
  71. package/dist/Directory/Types.jsx +0 -101
  72. package/dist/Directory/User.jsx +0 -117
  73. package/dist/HeadlessUI/Dialog.jsx +0 -66
  74. package/dist/HeadlessUI/ModalDialog.jsx +0 -74
  75. package/dist/HeadlessUI/Switch.jsx +0 -66
  76. package/dist/HeadlessUI/Transition.jsx +0 -66
@@ -1,426 +0,0 @@
1
- import { FSharpRef, Record, Union } from "../fable_modules/fable-library-js.4.20.0/Types.js";
2
- import { record_type, option_type, string_type, union_type, class_type } from "../fable_modules/fable-library-js.4.20.0/Reflection.js";
3
- import { year, tryParse, minValue, utcNow, toUniversalTime } from "../fable_modules/fable-library-js.4.20.0/Date.js";
4
- import { FSharpResult$2, Result_Bind, Result_Map } from "../fable_modules/fable-library-js.4.20.0/Result.js";
5
- import { requireNonEmpty, requireMaxLength } from "./Utils.jsx";
6
-
7
- export class UtcDateTime extends Union {
8
- constructor(Item) {
9
- super();
10
- this.tag = 0;
11
- this.fields = [Item];
12
- }
13
- cases() {
14
- return ["UtcDateTime"];
15
- }
16
- }
17
-
18
- export function UtcDateTime_$reflection() {
19
- return union_type("DomainPrimitives.UtcDateTime", [], UtcDateTime, () => [[["Item", class_type("System.DateTime")]]]);
20
- }
21
-
22
- export function UtcDateTimeModule_create(dateTime) {
23
- return new UtcDateTime(toUniversalTime(dateTime));
24
- }
25
-
26
- export function UtcDateTimeModule_value(_arg) {
27
- return _arg.fields[0];
28
- }
29
-
30
- export function UtcDateTimeModule_now() {
31
- return UtcDateTimeModule_create(utcNow());
32
- }
33
-
34
- export class ProfileId extends Union {
35
- constructor(Item) {
36
- super();
37
- this.tag = 0;
38
- this.fields = [Item];
39
- }
40
- cases() {
41
- return ["ProfileId"];
42
- }
43
- }
44
-
45
- export function ProfileId_$reflection() {
46
- return union_type("DomainPrimitives.ProfileId", [], ProfileId, () => [[["Item", string_type]]]);
47
- }
48
-
49
- export function ProfileIdModule_value(_arg) {
50
- return _arg.fields[0];
51
- }
52
-
53
- export class AccountId extends Union {
54
- constructor(Item) {
55
- super();
56
- this.tag = 0;
57
- this.fields = [Item];
58
- }
59
- cases() {
60
- return ["AccountId"];
61
- }
62
- }
63
-
64
- export function AccountId_$reflection() {
65
- return union_type("DomainPrimitives.AccountId", [], AccountId, () => [[["Item", string_type]]]);
66
- }
67
-
68
- export function AccountIdModule_value(_arg) {
69
- return _arg.fields[0];
70
- }
71
-
72
- export class PartnerId extends Union {
73
- constructor(Item) {
74
- super();
75
- this.tag = 0;
76
- this.fields = [Item];
77
- }
78
- cases() {
79
- return ["PartnerId"];
80
- }
81
- }
82
-
83
- export function PartnerId_$reflection() {
84
- return union_type("DomainPrimitives.PartnerId", [], PartnerId, () => [[["Item", string_type]]]);
85
- }
86
-
87
- export function PartnerIdModule_value(_arg) {
88
- return _arg.fields[0];
89
- }
90
-
91
- export class ExternalId extends Union {
92
- constructor(Item) {
93
- super();
94
- this.tag = 0;
95
- this.fields = [Item];
96
- }
97
- cases() {
98
- return ["ExternalId"];
99
- }
100
- }
101
-
102
- export function ExternalId_$reflection() {
103
- return union_type("DomainPrimitives.ExternalId", [], ExternalId, () => [[["Item", string_type]]]);
104
- }
105
-
106
- export class Name extends Record {
107
- constructor(FirstName, MiddleName, LastName) {
108
- super();
109
- this.FirstName = FirstName;
110
- this.MiddleName = MiddleName;
111
- this.LastName = LastName;
112
- }
113
- }
114
-
115
- export function Name_$reflection() {
116
- return record_type("DomainPrimitives.Name", [], Name, () => [["FirstName", string_type], ["MiddleName", option_type(string_type)], ["LastName", string_type]]);
117
- }
118
-
119
- export class FullName extends Union {
120
- constructor(Item) {
121
- super();
122
- this.tag = 0;
123
- this.fields = [Item];
124
- }
125
- cases() {
126
- return ["FullName"];
127
- }
128
- }
129
-
130
- export function FullName_$reflection() {
131
- return union_type("DomainPrimitives.FullName", [], FullName, () => [[["Item", string_type]]]);
132
- }
133
-
134
- export function FullNameModule_toDomain(s) {
135
- return Result_Map((Item) => (new FullName(Item)), Result_Bind((value_1) => requireMaxLength(60, "Full Name", value_1), requireNonEmpty("Full Name", s)));
136
- }
137
-
138
- export function FullNameModule_ofDomain(_arg) {
139
- return _arg.fields[0];
140
- }
141
-
142
- export class Gender extends Union {
143
- constructor(tag, fields) {
144
- super();
145
- this.tag = tag;
146
- this.fields = fields;
147
- }
148
- cases() {
149
- return ["Male", "Female", "Intersex", "Transgender", "PreferNotToAnswer", "Other", "NotSet"];
150
- }
151
- }
152
-
153
- export function Gender_$reflection() {
154
- return union_type("DomainPrimitives.Gender", [], Gender, () => [[], [], [], [], [], [], []]);
155
- }
156
-
157
- export class Title extends Union {
158
- constructor(Item) {
159
- super();
160
- this.tag = 0;
161
- this.fields = [Item];
162
- }
163
- cases() {
164
- return ["Title"];
165
- }
166
- }
167
-
168
- export function Title_$reflection() {
169
- return union_type("DomainPrimitives.Title", [], Title, () => [[["Item", string_type]]]);
170
- }
171
-
172
- export class MobilePhone extends Union {
173
- constructor(Item) {
174
- super();
175
- this.tag = 0;
176
- this.fields = [Item];
177
- }
178
- cases() {
179
- return ["MobilePhone"];
180
- }
181
- }
182
-
183
- export function MobilePhone_$reflection() {
184
- return union_type("DomainPrimitives.MobilePhone", [], MobilePhone, () => [[["Item", string_type]]]);
185
- }
186
-
187
- export class DateOfBirth extends Union {
188
- constructor(Item) {
189
- super();
190
- this.tag = 0;
191
- this.fields = [Item];
192
- }
193
- cases() {
194
- return ["DateOfBirth"];
195
- }
196
- }
197
-
198
- export function DateOfBirth_$reflection() {
199
- return union_type("DomainPrimitives.DateOfBirth", [], DateOfBirth, () => [[["Item", string_type]]]);
200
- }
201
-
202
- export function DateOfBirthModule_yearOfBirth(_arg) {
203
- let matchValue;
204
- let outArg = minValue();
205
- matchValue = [tryParse(_arg.fields[0], new FSharpRef(() => outArg, (v) => {
206
- outArg = v;
207
- })), outArg];
208
- if (matchValue[0]) {
209
- return year(matchValue[1]);
210
- }
211
- else {
212
- return undefined;
213
- }
214
- }
215
-
216
- export class Email extends Union {
217
- constructor(Item) {
218
- super();
219
- this.tag = 0;
220
- this.fields = [Item];
221
- }
222
- cases() {
223
- return ["Email"];
224
- }
225
- }
226
-
227
- export function Email_$reflection() {
228
- return union_type("DomainPrimitives.Email", [], Email, () => [[["Item", string_type]]]);
229
- }
230
-
231
- export function EmailModule_toLower(_arg) {
232
- return new Email(_arg.fields[0].toLowerCase());
233
- }
234
-
235
- export const $007CEmailLowerCase$007C = (arg) => EmailModule_toLower(arg).fields[0];
236
-
237
- export class Relationship extends Union {
238
- constructor(tag, fields) {
239
- super();
240
- this.tag = tag;
241
- this.fields = fields;
242
- }
243
- cases() {
244
- return ["Spouse", "Parent", "Child", "Sibling", "Partner", "Sister", "Husband", "Father", "Mother", "Daughter", "Defacto", "Fiance", "Boyfriend", "Brother", "Wife", "Son", "Engaged", "Friend", "Girlfriend", "Other"];
245
- }
246
- }
247
-
248
- export function Relationship_$reflection() {
249
- return union_type("DomainPrimitives.Relationship", [], Relationship, () => [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]);
250
- }
251
-
252
- export function RelationshipModule_ofDomain(_arg) {
253
- switch (_arg.tag) {
254
- case 1:
255
- return "Parent";
256
- case 2:
257
- return "Child";
258
- case 3:
259
- return "Sibling";
260
- case 4:
261
- return "Partner";
262
- case 5:
263
- return "Sister";
264
- case 6:
265
- return "Husband";
266
- case 7:
267
- return "Father";
268
- case 8:
269
- return "Mother";
270
- case 9:
271
- return "Daughter";
272
- case 10:
273
- return "Defacto";
274
- case 11:
275
- return "Fiance";
276
- case 12:
277
- return "Boyfriend";
278
- case 13:
279
- return "Brother";
280
- case 14:
281
- return "Wife";
282
- case 15:
283
- return "Son";
284
- case 16:
285
- return "Engaged";
286
- case 17:
287
- return "Friend";
288
- case 18:
289
- return "Girlfriend";
290
- case 19:
291
- return "Other";
292
- default:
293
- return "Spouse";
294
- }
295
- }
296
-
297
- export function RelationshipModule_toDomain(_arg) {
298
- switch (_arg) {
299
- case "Spouse":
300
- return new FSharpResult$2(0, [new Relationship(0, [])]);
301
- case "Parent":
302
- return new FSharpResult$2(0, [new Relationship(1, [])]);
303
- case "Child":
304
- return new FSharpResult$2(0, [new Relationship(2, [])]);
305
- case "Sibling":
306
- return new FSharpResult$2(0, [new Relationship(3, [])]);
307
- case "Partner":
308
- return new FSharpResult$2(0, [new Relationship(4, [])]);
309
- case "Sister":
310
- return new FSharpResult$2(0, [new Relationship(5, [])]);
311
- case "Husband":
312
- return new FSharpResult$2(0, [new Relationship(6, [])]);
313
- case "Father":
314
- return new FSharpResult$2(0, [new Relationship(7, [])]);
315
- case "Mother":
316
- return new FSharpResult$2(0, [new Relationship(8, [])]);
317
- case "Daughter":
318
- return new FSharpResult$2(0, [new Relationship(9, [])]);
319
- case "Defacto":
320
- return new FSharpResult$2(0, [new Relationship(10, [])]);
321
- case "Fiance":
322
- return new FSharpResult$2(0, [new Relationship(11, [])]);
323
- case "Boyfriend":
324
- return new FSharpResult$2(0, [new Relationship(12, [])]);
325
- case "Brother":
326
- return new FSharpResult$2(0, [new Relationship(13, [])]);
327
- case "Wife":
328
- return new FSharpResult$2(0, [new Relationship(14, [])]);
329
- case "Son":
330
- return new FSharpResult$2(0, [new Relationship(15, [])]);
331
- case "Engaged":
332
- return new FSharpResult$2(0, [new Relationship(16, [])]);
333
- case "Friend":
334
- return new FSharpResult$2(0, [new Relationship(17, [])]);
335
- case "Girlfriend":
336
- return new FSharpResult$2(0, [new Relationship(18, [])]);
337
- case "Other":
338
- return new FSharpResult$2(0, [new Relationship(19, [])]);
339
- default:
340
- return new FSharpResult$2(1, ["Relationship value is not supported"]);
341
- }
342
- }
343
-
344
- export class Address extends Record {
345
- constructor(AddressLine1, AddressLine2, City, State, Postcode, CountryCode) {
346
- super();
347
- this.AddressLine1 = AddressLine1;
348
- this.AddressLine2 = AddressLine2;
349
- this.City = City;
350
- this.State = State;
351
- this.Postcode = Postcode;
352
- this.CountryCode = CountryCode;
353
- }
354
- }
355
-
356
- export function Address_$reflection() {
357
- return record_type("DomainPrimitives.Address", [], Address, () => [["AddressLine1", string_type], ["AddressLine2", option_type(string_type)], ["City", string_type], ["State", string_type], ["Postcode", string_type], ["CountryCode", string_type]]);
358
- }
359
-
360
- export class PurgedAddress extends Record {
361
- constructor(City, State, Postcode, CountryCode) {
362
- super();
363
- this.City = City;
364
- this.State = State;
365
- this.Postcode = Postcode;
366
- this.CountryCode = CountryCode;
367
- }
368
- }
369
-
370
- export function PurgedAddress_$reflection() {
371
- return record_type("DomainPrimitives.PurgedAddress", [], PurgedAddress, () => [["City", string_type], ["State", string_type], ["Postcode", string_type], ["CountryCode", string_type]]);
372
- }
373
-
374
- export class EmergencyContact extends Record {
375
- constructor(FullName, Relationship, MobilePhone, Email, Address) {
376
- super();
377
- this.FullName = FullName;
378
- this.Relationship = Relationship;
379
- this.MobilePhone = MobilePhone;
380
- this.Email = Email;
381
- this.Address = Address;
382
- }
383
- }
384
-
385
- export function EmergencyContact_$reflection() {
386
- return record_type("DomainPrimitives.EmergencyContact", [], EmergencyContact, () => [["FullName", FullName_$reflection()], ["Relationship", Relationship_$reflection()], ["MobilePhone", MobilePhone_$reflection()], ["Email", option_type(Email_$reflection())], ["Address", option_type(Address_$reflection())]]);
387
- }
388
-
389
- export class AuState extends Union {
390
- constructor(tag, fields) {
391
- super();
392
- this.tag = tag;
393
- this.fields = fields;
394
- }
395
- cases() {
396
- return ["NSW", "QLD", "WA", "SA", "NT", "VIC", "TAS", "ACT"];
397
- }
398
- }
399
-
400
- export function AuState_$reflection() {
401
- return union_type("DomainPrimitives.AuState", [], AuState, () => [[], [], [], [], [], [], [], []]);
402
- }
403
-
404
- export function AuStateModule_toDomain(_arg) {
405
- switch (_arg) {
406
- case "NSW":
407
- return new FSharpResult$2(0, [new AuState(0, [])]);
408
- case "QLD":
409
- return new FSharpResult$2(0, [new AuState(1, [])]);
410
- case "WA":
411
- return new FSharpResult$2(0, [new AuState(2, [])]);
412
- case "SA":
413
- return new FSharpResult$2(0, [new AuState(3, [])]);
414
- case "NT":
415
- return new FSharpResult$2(0, [new AuState(4, [])]);
416
- case "VIC":
417
- return new FSharpResult$2(0, [new AuState(5, [])]);
418
- case "TAS":
419
- return new FSharpResult$2(0, [new AuState(6, [])]);
420
- case "ACT":
421
- return new FSharpResult$2(0, [new AuState(7, [])]);
422
- default:
423
- return new FSharpResult$2(1, ["State value is not supported"]);
424
- }
425
- }
426
-