@flarehr/superhero-basic-profile 0.1.2215 → 0.1.2217
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/dist/App.jsx +4 -0
- package/dist/Basic.Profile.Domain/AnalyticsEvent.jsx +102 -0
- package/dist/Basic.Profile.Domain/Audit.jsx +149 -0
- package/dist/Basic.Profile.Domain/Commands.jsx +68 -0
- package/dist/Basic.Profile.Domain/CommonTypes.jsx +194 -0
- package/dist/Basic.Profile.Domain/Config/Api/Admin/Read.jsx +58 -0
- package/dist/Basic.Profile.Domain/Config/Api/Admin/Write.jsx +23 -0
- package/dist/Basic.Profile.Domain/Config/Api/FlareAdminShell/Read.jsx +35 -0
- package/dist/Basic.Profile.Domain/Config/Commands.jsx +72 -0
- package/dist/Basic.Profile.Domain/Config/ConfigCommandHandler.jsx +197 -0
- package/dist/Basic.Profile.Domain/Config/Dto.jsx +181 -0
- package/dist/Basic.Profile.Domain/Config/Types.jsx +152 -0
- package/dist/Basic.Profile.Domain/DateTimeProvider.jsx +23 -0
- package/dist/Basic.Profile.Domain/DomainAggregates.jsx +801 -0
- package/dist/Basic.Profile.Domain/DomainPrimitives.jsx +426 -0
- package/dist/Basic.Profile.Domain/Dto/Aggregates.jsx +564 -0
- package/dist/Basic.Profile.Domain/Dto/AnalyticsEvent.jsx +157 -0
- package/dist/Basic.Profile.Domain/Dto/Api/Backend/Common.jsx +102 -0
- package/dist/Basic.Profile.Domain/Dto/Api/Backend/Read.jsx +85 -0
- package/dist/Basic.Profile.Domain/Dto/Api/Backend/Write.jsx +16 -0
- package/dist/Basic.Profile.Domain/Dto/Api/Common.jsx +427 -0
- package/dist/Basic.Profile.Domain/Dto/Api/External/Read.jsx +118 -0
- package/dist/Basic.Profile.Domain/Dto/Api/External/ReadV2.jsx +6 -0
- package/dist/Basic.Profile.Domain/Dto/Api/External/Write.jsx +184 -0
- package/dist/Basic.Profile.Domain/Dto/Api/External/WriteV2.jsx +439 -0
- package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Read.jsx +38 -0
- package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Write.jsx +199 -0
- package/dist/Basic.Profile.Domain/Dto/Api/Internal/Read.jsx +125 -0
- package/dist/Basic.Profile.Domain/Dto/Audit.jsx +121 -0
- package/dist/Basic.Profile.Domain/Dto/Commands.jsx +256 -0
- package/dist/Basic.Profile.Domain/Dto/Common.jsx +84 -0
- package/dist/Basic.Profile.Domain/Dto/Events.jsx +220 -0
- package/dist/Basic.Profile.Domain/Dto/Primitives.jsx +580 -0
- package/dist/Basic.Profile.Domain/Dto/ProfileCreationModels.jsx +324 -0
- package/dist/Basic.Profile.Domain/Dto/Validation.jsx +229 -0
- package/dist/Basic.Profile.Domain/Events.jsx +64 -0
- package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Read.jsx +140 -0
- package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Validation.jsx +499 -0
- package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Write.jsx +51 -0
- package/dist/Basic.Profile.Domain/Import/Api/Read.jsx +154 -0
- package/dist/Basic.Profile.Domain/Import/CommonTypes.jsx +187 -0
- package/dist/Basic.Profile.Domain/Import/Dto.jsx +475 -0
- package/dist/Basic.Profile.Domain/Import/ImportCommandHandler.jsx +531 -0
- package/dist/Basic.Profile.Domain/Import/Types.jsx +405 -0
- package/dist/Basic.Profile.Domain/JwtPayload.jsx +44 -0
- package/dist/Basic.Profile.Domain/Metadata.jsx +257 -0
- package/dist/Basic.Profile.Domain/ProfileCommandHandler.jsx +261 -0
- package/dist/Basic.Profile.Domain/ProfileModels.jsx +59 -0
- package/dist/Basic.Profile.Domain/Utils.jsx +372 -0
- package/dist/Common/PreactCustomElement.jsx +8 -0
- package/dist/Common/Resources.jsx +20 -0
- package/dist/Common/Tailwind.jsx +8 -0
- package/dist/Common/Utils.jsx +18 -0
- package/dist/Directory/App.jsx +192 -0
- package/dist/Directory/BackendServices/Common.jsx +115 -0
- package/dist/Directory/BackendServices/ConfigService.jsx +168 -0
- package/dist/Directory/BackendServices/ImportService.jsx +137 -0
- package/dist/Directory/Common.jsx +93 -0
- package/dist/Directory/Config/Components.jsx +173 -0
- package/dist/Directory/Config/Types.jsx +187 -0
- package/dist/Directory/PastImports/PastImports.jsx +81 -0
- package/dist/Directory/ProfileImport/ProfileImport.jsx +284 -0
- package/dist/Directory/ProfileImport/Types.jsx +91 -0
- package/dist/Directory/TabNav.jsx +24 -0
- package/dist/Directory/Types.jsx +101 -0
- package/dist/Directory/User.jsx +117 -0
- package/dist/HeadlessUI/Dialog.jsx +66 -0
- package/dist/HeadlessUI/ModalDialog.jsx +74 -0
- package/dist/HeadlessUI/Switch.jsx +66 -0
- package/dist/HeadlessUI/Transition.jsx +66 -0
- package/package.json +1 -1
- package/dist/assets/delete.dcc7b157.svg +0 -5
- package/dist/assets/dialog-warning.cc77f3ba.svg +0 -5
- package/dist/assets/pencil.05fe6be6.svg +0 -5
- package/dist/index.html +0 -20
- package/dist/superhero-basic-profile.js +0 -50
|
@@ -0,0 +1,426 @@
|
|
|
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
|
+
|