ajsc 3.0.2 → 5.0.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.
Files changed (40) hide show
  1. package/dist/JSONSchemaConverter.js +18 -4
  2. package/dist/JSONSchemaConverter.js.map +1 -1
  3. package/dist/JSONSchemaConverter.test.js +32 -4
  4. package/dist/JSONSchemaConverter.test.js.map +1 -1
  5. package/dist/TypescriptBaseConverter.d.ts +14 -1
  6. package/dist/TypescriptBaseConverter.js +32 -3
  7. package/dist/TypescriptBaseConverter.js.map +1 -1
  8. package/dist/TypescriptConverter.additionalProperties.test.js +110 -0
  9. package/dist/TypescriptConverter.additionalProperties.test.js.map +1 -0
  10. package/dist/TypescriptConverter.arrays.test.js +130 -0
  11. package/dist/TypescriptConverter.arrays.test.js.map +1 -0
  12. package/dist/TypescriptConverter.composites.test.d.ts +1 -0
  13. package/dist/TypescriptConverter.composites.test.js +13 -0
  14. package/dist/TypescriptConverter.composites.test.js.map +1 -0
  15. package/dist/TypescriptConverter.d.ts +56 -9
  16. package/dist/TypescriptConverter.js +105 -7
  17. package/dist/TypescriptConverter.js.map +1 -1
  18. package/dist/TypescriptConverter.objects.test.d.ts +1 -0
  19. package/dist/TypescriptConverter.objects.test.js +258 -0
  20. package/dist/TypescriptConverter.objects.test.js.map +1 -0
  21. package/dist/TypescriptConverter.options.test.d.ts +1 -0
  22. package/dist/TypescriptConverter.options.test.js +430 -0
  23. package/dist/TypescriptConverter.options.test.js.map +1 -0
  24. package/dist/TypescriptConverter.primitives.test.d.ts +1 -0
  25. package/dist/TypescriptConverter.primitives.test.js +26 -0
  26. package/dist/TypescriptConverter.primitives.test.js.map +1 -0
  27. package/dist/index.d.ts +0 -1
  28. package/dist/index.js +0 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/types.d.ts +2 -1
  31. package/package.json +5 -3
  32. package/dist/TypescriptConverter.test.js +0 -325
  33. package/dist/TypescriptConverter.test.js.map +0 -1
  34. package/dist/TypescriptProcedureConverter.d.ts +0 -19
  35. package/dist/TypescriptProcedureConverter.js +0 -54
  36. package/dist/TypescriptProcedureConverter.js.map +0 -1
  37. package/dist/TypescriptProcedureConverter.test.js +0 -997
  38. package/dist/TypescriptProcedureConverter.test.js.map +0 -1
  39. /package/dist/{TypescriptConverter.test.d.ts → TypescriptConverter.additionalProperties.test.d.ts} +0 -0
  40. /package/dist/{TypescriptProcedureConverter.test.d.ts → TypescriptConverter.arrays.test.d.ts} +0 -0
@@ -1,997 +0,0 @@
1
- import { describe, it, expect } from "vitest";
2
- import { TypescriptProcedureConverter } from "./TypescriptProcedureConverter.js";
3
- describe("TypescriptProceduresPlugin", () => {
4
- it("sets `unknown` for Args/Data that is empty or undefined", () => {
5
- const converter = new TypescriptProcedureConverter("MyScope", {
6
- args: {},
7
- data: {},
8
- });
9
- expect(converter.code.replace(/\s/g, "")).toMatch(`export namespace MyScope {
10
- export type Args = { [key:string]: unknown }
11
-
12
- export type Data = { [key:string]: unknown }
13
- }`.replace(/\s/g, ""));
14
- });
15
- it("sets Args/Data as array type", () => {
16
- const converter = new TypescriptProcedureConverter("MyScope", {
17
- args: {
18
- type: "array",
19
- items: {
20
- type: "object",
21
- properties: { id: { type: "string" } },
22
- required: ["id"],
23
- },
24
- },
25
- data: {
26
- type: "array",
27
- items: {
28
- type: "number",
29
- },
30
- },
31
- });
32
- expect(converter.code.replace(/\s/g, "")).toMatch(`export namespace MyScope {
33
- export type Item = { id: string; }
34
-
35
- export type Args = Array<Item>
36
-
37
- export type Data = Array<number>
38
- }`.replace(/\s/g, ""));
39
- });
40
- it('sets handles undefined args/data types', () => {
41
- const converter = new TypescriptProcedureConverter("MyScope", {
42
- args: undefined,
43
- data: undefined,
44
- });
45
- expect(converter.code.replace(/\s/g, "")).toMatch(`export namespace MyScope {
46
- export type Args = unknown
47
-
48
- export type Data = unknown
49
- }`.replace(/\s/g, ""));
50
- });
51
- it("complex json-schema", () => {
52
- const argsAndData = {
53
- type: "object",
54
- properties: {
55
- pagination: {
56
- type: "object",
57
- properties: {
58
- total: {
59
- type: "number",
60
- },
61
- },
62
- },
63
- organizations: {
64
- type: "array",
65
- items: {
66
- type: "object",
67
- properties: {
68
- counts: {
69
- type: "object",
70
- properties: {
71
- locations: {
72
- type: "number",
73
- },
74
- portalUsers: {
75
- type: "number",
76
- },
77
- users: {
78
- type: "number",
79
- },
80
- regions: {
81
- type: "number",
82
- },
83
- },
84
- required: ["locations", "portalUsers", "users", "regions"],
85
- },
86
- linkedToInfinityOrganizationId: {
87
- type: "string",
88
- },
89
- migration: {
90
- type: "object",
91
- properties: {
92
- infinity: {
93
- type: "object",
94
- properties: {
95
- organizationId: {
96
- type: "string",
97
- },
98
- primaryRegionId: {
99
- type: "string",
100
- },
101
- primaryUserId: {
102
- type: "string",
103
- },
104
- },
105
- required: [
106
- "organizationId",
107
- "primaryRegionId",
108
- "primaryUserId",
109
- ],
110
- },
111
- legacy: {
112
- type: "object",
113
- properties: {
114
- organizationId: {
115
- type: "string",
116
- },
117
- primaryRegionId: {
118
- type: "string",
119
- },
120
- primaryUserId: {
121
- type: "string",
122
- },
123
- },
124
- required: [
125
- "organizationId",
126
- "primaryRegionId",
127
- "primaryUserId",
128
- ],
129
- },
130
- operations: {
131
- type: "array",
132
- items: {
133
- type: "object",
134
- properties: {
135
- action: {
136
- anyOf: [
137
- {
138
- const: "initial-migration",
139
- type: "string",
140
- },
141
- {
142
- const: "migration-update",
143
- type: "string",
144
- },
145
- ],
146
- },
147
- timestamp: {
148
- type: "string",
149
- },
150
- },
151
- required: ["action", "timestamp"],
152
- },
153
- },
154
- organizationId: {
155
- type: "string",
156
- },
157
- step: {
158
- type: "object",
159
- properties: {
160
- create_regions: {
161
- type: "object",
162
- properties: {
163
- total: {
164
- type: "number",
165
- },
166
- processed: {
167
- type: "number",
168
- },
169
- failed: {
170
- type: "number",
171
- },
172
- },
173
- required: ["total", "processed", "failed"],
174
- },
175
- create_location_groups: {
176
- type: "object",
177
- properties: {
178
- total: {
179
- type: "number",
180
- },
181
- processed: {
182
- type: "number",
183
- },
184
- failed: {
185
- type: "number",
186
- },
187
- },
188
- required: ["total", "processed", "failed"],
189
- },
190
- create_locations: {
191
- type: "object",
192
- properties: {
193
- total: {
194
- type: "number",
195
- },
196
- processed: {
197
- type: "number",
198
- },
199
- failed: {
200
- type: "number",
201
- },
202
- },
203
- required: ["total", "processed", "failed"],
204
- },
205
- create_locations_bolos: {
206
- type: "object",
207
- properties: {
208
- total: {
209
- type: "number",
210
- },
211
- processed: {
212
- type: "number",
213
- },
214
- failed: {
215
- type: "number",
216
- },
217
- },
218
- required: ["total", "processed", "failed"],
219
- },
220
- create_locations_checkpoints: {
221
- type: "object",
222
- properties: {
223
- total: {
224
- type: "number",
225
- },
226
- processed: {
227
- type: "number",
228
- },
229
- failed: {
230
- type: "number",
231
- },
232
- },
233
- required: ["total", "processed", "failed"],
234
- },
235
- create_locations_contacts: {
236
- type: "object",
237
- properties: {
238
- total: {
239
- type: "number",
240
- },
241
- processed: {
242
- type: "number",
243
- },
244
- failed: {
245
- type: "number",
246
- },
247
- },
248
- required: ["total", "processed", "failed"],
249
- },
250
- create_locations_info_blocks: {
251
- type: "object",
252
- properties: {
253
- total: {
254
- type: "number",
255
- },
256
- processed: {
257
- type: "number",
258
- },
259
- failed: {
260
- type: "number",
261
- },
262
- },
263
- required: ["total", "processed", "failed"],
264
- },
265
- create_locations_passdowns: {
266
- type: "object",
267
- properties: {
268
- total: {
269
- type: "number",
270
- },
271
- processed: {
272
- type: "number",
273
- },
274
- failed: {
275
- type: "number",
276
- },
277
- },
278
- required: ["total", "processed", "failed"],
279
- },
280
- create_locations_subscribers: {
281
- type: "object",
282
- properties: {
283
- total: {
284
- type: "number",
285
- },
286
- processed: {
287
- type: "number",
288
- },
289
- failed: {
290
- type: "number",
291
- },
292
- },
293
- required: ["total", "processed", "failed"],
294
- },
295
- create_locations_sub_locations: {
296
- type: "object",
297
- properties: {
298
- total: {
299
- type: "number",
300
- },
301
- processed: {
302
- type: "number",
303
- },
304
- failed: {
305
- type: "number",
306
- },
307
- },
308
- required: ["total", "processed", "failed"],
309
- },
310
- create_users: {
311
- type: "object",
312
- properties: {
313
- total: {
314
- type: "number",
315
- },
316
- processed: {
317
- type: "number",
318
- },
319
- failed: {
320
- type: "number",
321
- },
322
- },
323
- required: ["total", "processed", "failed"],
324
- },
325
- create_portal_users: {
326
- type: "object",
327
- properties: {
328
- total: {
329
- type: "number",
330
- },
331
- processed: {
332
- type: "number",
333
- },
334
- failed: {
335
- type: "number",
336
- },
337
- },
338
- required: ["total", "processed", "failed"],
339
- },
340
- create_records: {
341
- type: "object",
342
- properties: {
343
- total: {
344
- type: "number",
345
- },
346
- processed: {
347
- type: "number",
348
- },
349
- failed: {
350
- type: "number",
351
- },
352
- },
353
- required: ["total", "processed", "failed"],
354
- },
355
- create_records_comments: {
356
- type: "object",
357
- properties: {
358
- total: {
359
- type: "number",
360
- },
361
- processed: {
362
- type: "number",
363
- },
364
- failed: {
365
- type: "number",
366
- },
367
- },
368
- required: ["total", "processed", "failed"],
369
- },
370
- },
371
- },
372
- startTime: {
373
- type: "string",
374
- },
375
- endTime: {
376
- anyOf: [
377
- {
378
- type: "string",
379
- },
380
- {
381
- type: "null",
382
- },
383
- ],
384
- },
385
- },
386
- required: ["operations", "organizationId", "step"],
387
- },
388
- organization: {
389
- type: "object",
390
- properties: {
391
- _id: {
392
- type: "string",
393
- },
394
- _migrated: {
395
- anyOf: [
396
- {
397
- type: "object",
398
- properties: {
399
- success: {
400
- const: true,
401
- type: "boolean",
402
- },
403
- infinityOrgId: {
404
- type: "string",
405
- },
406
- infinityId: {
407
- type: "string",
408
- },
409
- infinityEntity: {
410
- type: "string",
411
- },
412
- },
413
- required: [
414
- "success",
415
- "infinityOrgId",
416
- "infinityId",
417
- "infinityEntity",
418
- ],
419
- },
420
- {
421
- type: "object",
422
- properties: {
423
- success: {
424
- const: false,
425
- type: "boolean",
426
- },
427
- },
428
- required: ["success"],
429
- },
430
- {
431
- type: "null",
432
- },
433
- ],
434
- },
435
- active: {
436
- type: "boolean",
437
- },
438
- address: {
439
- type: "object",
440
- properties: {
441
- city: {
442
- type: "string",
443
- },
444
- state: {
445
- type: "string",
446
- },
447
- streetAddress: {
448
- type: "string",
449
- },
450
- },
451
- required: ["city", "state"],
452
- },
453
- createdAt: {
454
- type: "string",
455
- },
456
- createdBy: {
457
- type: "string",
458
- },
459
- name: {
460
- type: "string",
461
- },
462
- phone: {
463
- type: "string",
464
- },
465
- updatedAt: {
466
- type: "string",
467
- },
468
- updatedBy: {
469
- type: "string",
470
- },
471
- website: {
472
- type: "string",
473
- },
474
- logoUrl: {
475
- anyOf: [
476
- {
477
- type: "array",
478
- items: {
479
- type: "string",
480
- },
481
- },
482
- {
483
- type: "string",
484
- },
485
- ],
486
- },
487
- userStatuses: {
488
- type: "array",
489
- items: {
490
- type: "object",
491
- properties: {
492
- color: {
493
- type: "string",
494
- },
495
- title: {
496
- type: "string",
497
- },
498
- },
499
- required: ["color", "title"],
500
- },
501
- },
502
- stagnent: {
503
- type: "boolean",
504
- },
505
- metadata: {
506
- type: "object",
507
- properties: {
508
- _id: {
509
- type: "string",
510
- },
511
- _migrated: {
512
- anyOf: [
513
- {
514
- type: "object",
515
- properties: {
516
- success: {
517
- const: true,
518
- type: "boolean",
519
- },
520
- infinityOrgId: {
521
- type: "string",
522
- },
523
- infinityId: {
524
- type: "string",
525
- },
526
- infinityEntity: {
527
- type: "string",
528
- },
529
- },
530
- required: [
531
- "success",
532
- "infinityOrgId",
533
- "infinityId",
534
- "infinityEntity",
535
- ],
536
- },
537
- {
538
- type: "object",
539
- properties: {
540
- success: {
541
- const: false,
542
- type: "boolean",
543
- },
544
- },
545
- required: ["success"],
546
- },
547
- {
548
- type: "null",
549
- },
550
- ],
551
- },
552
- firstLogin: {
553
- type: "boolean",
554
- },
555
- modules: {
556
- type: "object",
557
- properties: {
558
- region: {
559
- type: "boolean",
560
- },
561
- report: {
562
- type: "boolean",
563
- },
564
- record: {
565
- type: "boolean",
566
- },
567
- mail: {
568
- type: "boolean",
569
- },
570
- location: {
571
- type: "boolean",
572
- },
573
- dispatch: {
574
- type: "boolean",
575
- },
576
- bulletin: {
577
- type: "boolean",
578
- },
579
- portal: {
580
- type: "boolean",
581
- },
582
- schedule: {
583
- type: "boolean",
584
- },
585
- geolocation: {
586
- type: "boolean",
587
- },
588
- patrol: {
589
- type: "boolean",
590
- },
591
- integrations: {
592
- type: "boolean",
593
- },
594
- dateFormat: {
595
- type: "string",
596
- },
597
- timeFormat: {
598
- type: "string",
599
- },
600
- },
601
- },
602
- organizationId: {
603
- type: "string",
604
- },
605
- settings: {
606
- type: "object",
607
- properties: {
608
- dateFormat: {
609
- type: "string",
610
- },
611
- timeFormat: {
612
- type: "string",
613
- },
614
- userNameFormat: {
615
- type: "number",
616
- },
617
- module: {
618
- type: "object",
619
- properties: {
620
- dispatch: {
621
- type: "object",
622
- properties: {
623
- allowedDispatchTypeIds: {
624
- type: "object",
625
- properties: {
626
- serviceCall: {
627
- type: "boolean",
628
- },
629
- userStatus: {
630
- type: "boolean",
631
- },
632
- },
633
- },
634
- dispatchTypeSettings: {
635
- type: "object",
636
- properties: {
637
- serviceCall: {
638
- type: "object",
639
- properties: {
640
- requireClearedWithReportEntry: {
641
- type: "boolean",
642
- },
643
- },
644
- required: [
645
- "requireClearedWithReportEntry",
646
- ],
647
- },
648
- },
649
- required: ["serviceCall"],
650
- },
651
- },
652
- required: ["allowedDispatchTypeIds"],
653
- },
654
- roster: {
655
- type: "object",
656
- properties: {
657
- userInfoAccessLevel: {
658
- anyOf: [
659
- {
660
- type: "null",
661
- },
662
- {
663
- type: "number",
664
- },
665
- ],
666
- },
667
- },
668
- required: ["userInfoAccessLevel"],
669
- },
670
- },
671
- },
672
- },
673
- },
674
- services: {
675
- type: "array",
676
- items: {
677
- type: "string",
678
- },
679
- },
680
- userStatuses: {
681
- type: "array",
682
- items: {
683
- type: "object",
684
- properties: {
685
- color: {
686
- type: "string",
687
- },
688
- geoTracking: {
689
- type: "boolean",
690
- },
691
- title: {
692
- type: "string",
693
- },
694
- sortPriority: {
695
- type: "number",
696
- },
697
- },
698
- required: [
699
- "color",
700
- "geoTracking",
701
- "title",
702
- "sortPriority",
703
- ],
704
- },
705
- },
706
- subscriptionStatus: {
707
- type: "string",
708
- },
709
- survey: {
710
- type: "object",
711
- properties: {
712
- referral: {
713
- type: "string",
714
- },
715
- currentlyUsingSystem: {
716
- type: "string",
717
- },
718
- organizationAppGoal: {
719
- type: "string",
720
- },
721
- currentSystemName: {
722
- type: "string",
723
- },
724
- currentSystemIssue: {
725
- type: "string",
726
- },
727
- contactMeForWalkThrough: {
728
- type: "boolean",
729
- },
730
- organizationAppGoalOther: {
731
- type: "string",
732
- },
733
- bestContactTime: {
734
- type: "string",
735
- },
736
- },
737
- },
738
- },
739
- required: [
740
- "_id",
741
- "modules",
742
- "organizationId",
743
- "settings",
744
- "services",
745
- "userStatuses",
746
- ],
747
- },
748
- },
749
- required: [
750
- "_id",
751
- "active",
752
- "address",
753
- "createdAt",
754
- "createdBy",
755
- "name",
756
- "updatedAt",
757
- "updatedBy",
758
- "metadata",
759
- ],
760
- },
761
- subscription: {
762
- type: "object",
763
- properties: {
764
- _id: {
765
- type: "string",
766
- },
767
- _migration: {
768
- anyOf: [
769
- {
770
- type: "object",
771
- properties: {
772
- success: {
773
- const: true,
774
- type: "boolean",
775
- },
776
- infinityOrgId: {
777
- type: "string",
778
- },
779
- infinityId: {
780
- type: "string",
781
- },
782
- infinityEntity: {
783
- type: "string",
784
- },
785
- },
786
- required: [
787
- "success",
788
- "infinityOrgId",
789
- "infinityId",
790
- "infinityEntity",
791
- ],
792
- },
793
- {
794
- type: "object",
795
- properties: {
796
- success: {
797
- const: false,
798
- type: "boolean",
799
- },
800
- },
801
- required: ["success"],
802
- },
803
- {
804
- type: "null",
805
- },
806
- ],
807
- },
808
- stripeMetadata: {
809
- type: "object",
810
- properties: {
811
- activeUsersUsageSubscriptionItemIds: {
812
- type: "array",
813
- items: {
814
- type: "string",
815
- },
816
- },
817
- paidInvoiceUrls: {
818
- type: "array",
819
- items: {
820
- type: "string",
821
- },
822
- },
823
- customerId: {
824
- type: "string",
825
- },
826
- monthlyUsersSubscriptionId: {
827
- anyOf: [
828
- {
829
- type: "null",
830
- },
831
- {
832
- type: "string",
833
- },
834
- ],
835
- },
836
- card: {
837
- type: "object",
838
- properties: {
839
- brand: {
840
- type: "string",
841
- },
842
- exp_month: {
843
- type: "number",
844
- },
845
- exp_year: {
846
- type: "number",
847
- },
848
- last4: {
849
- type: "number",
850
- },
851
- },
852
- required: ["brand", "exp_month", "exp_year", "last4"],
853
- },
854
- planId: {
855
- anyOf: [
856
- {
857
- type: "string",
858
- },
859
- {
860
- type: "null",
861
- },
862
- ],
863
- },
864
- },
865
- required: [
866
- "activeUsersUsageSubscriptionItemIds",
867
- "paidInvoiceUrls",
868
- "monthlyUsersSubscriptionId",
869
- ],
870
- },
871
- status: {
872
- type: "string",
873
- },
874
- organizationId: {
875
- type: "string",
876
- },
877
- createdAt: {
878
- type: "string",
879
- },
880
- statusDate: {
881
- type: "string",
882
- },
883
- __v: {
884
- type: "number",
885
- },
886
- trialEndDate: {
887
- type: "string",
888
- },
889
- activeUserCount: {
890
- type: "number",
891
- },
892
- statusMessage: {
893
- anyOf: [
894
- {
895
- type: "string",
896
- },
897
- {
898
- type: "null",
899
- },
900
- ],
901
- },
902
- contact: {
903
- type: "object",
904
- properties: {
905
- email: {
906
- type: "string",
907
- },
908
- name: {
909
- type: "string",
910
- },
911
- phone: {
912
- type: "string",
913
- },
914
- },
915
- required: ["email", "name", "phone"],
916
- },
917
- statusDelinquentAfterDate: {
918
- type: "null",
919
- },
920
- },
921
- required: [
922
- "_id",
923
- "stripeMetadata",
924
- "status",
925
- "organizationId",
926
- "createdAt",
927
- "statusDate",
928
- "__v",
929
- ],
930
- },
931
- },
932
- required: ["organization", "subscription"],
933
- },
934
- },
935
- },
936
- required: ["organizations"],
937
- };
938
- const converter = new TypescriptProcedureConverter("MyScope", {
939
- args: argsAndData,
940
- data: argsAndData,
941
- });
942
- expect(converter.code.replace(/\s/g, "")).toMatch(`export namespace MyScope {
943
-
944
-
945
- export type Pagination = { total?: number; }
946
- export type OrganizationItem = { counts?: Counts; linkedToInfinityOrganizationId?: string; migration?: Migration; organization: Organization; subscription: Subscription; }
947
- export type Counts = { locations: number; portalUsers: number; users: number; regions: number; }
948
- export type Migration = { infinity?: Infinity; legacy?: Legacy; operations: Array<OperationItem>; organizationId: string; step: Step; startTime?: string; endTime?: string | null; }
949
- export type Infinity = { organizationId: string; primaryRegionId: string; primaryUserId: string; }
950
- export type Legacy = { organizationId: string; primaryRegionId: string; primaryUserId: string; }
951
- export type OperationItem = { action: "initial-migration" | "migration-update"; timestamp: string; }
952
- export type Step = { create_regions?: CreateRegions; create_location_groups?: CreateLocationGroups; create_locations?: CreateLocations; create_locations_bolos?: CreateLocationsBolos; create_locations_checkpoints?: CreateLocationsCheckpoints; create_locations_contacts?: CreateLocationsContacts; create_locations_info_blocks?: CreateLocationsInfoBlocks; create_locations_passdowns?: CreateLocationsPassdowns; create_locations_subscribers?: CreateLocationsSubscribers; create_locations_sub_locations?: CreateLocationsSubLocations; create_users?: CreateUsers; create_portal_users?: CreatePortalUsers; create_records?: CreateRecords; create_records_comments?: CreateRecordsComments; }
953
- export type CreateRegions = { total: number; processed: number; failed: number; }
954
- export type CreateLocationGroups = { total: number; processed: number; failed: number; }
955
- export type CreateLocations = { total: number; processed: number; failed: number; }
956
- export type CreateLocationsBolos = { total: number; processed: number; failed: number; }
957
- export type CreateLocationsCheckpoints = { total: number; processed: number; failed: number; }
958
- export type CreateLocationsContacts = { total: number; processed: number; failed: number; }
959
- export type CreateLocationsInfoBlocks = { total: number; processed: number; failed: number; }
960
- export type CreateLocationsPassdowns = { total: number; processed: number; failed: number; }
961
- export type CreateLocationsSubscribers = { total: number; processed: number; failed: number; }
962
- export type CreateLocationsSubLocations = { total: number; processed: number; failed: number; }
963
- export type CreateUsers = { total: number; processed: number; failed: number; }
964
- export type CreatePortalUsers = { total: number; processed: number; failed: number; }
965
- export type CreateRecords = { total: number; processed: number; failed: number; }
966
- export type CreateRecordsComments = { total: number; processed: number; failed: number; }
967
- export type Organization = { _id: string; _migrated?: Migrated | OrganizationMigrated | null; active: boolean; address: Address; createdAt: string; createdBy: string; name: string; phone?: string; updatedAt: string; updatedBy: string; website?: string; logoUrl?: Array<string> | string; userStatuses?: Array<UserStatuseItem>; stagnent?: boolean; metadata: Metadata; }
968
- export type Migrated = { success: true; infinityOrgId: string; infinityId: string; infinityEntity: string; }
969
- export type OrganizationMigrated = { success: false; }
970
- export type Address = { city: string; state: string; streetAddress?: string; }
971
- export type UserStatuseItem = { color: string; title: string; }
972
- export type Metadata = { _id: string; _migrated?: Migrated | MetadataMigrated | null; firstLogin?: boolean; modules: Modules; organizationId: string; settings: Settings; services: Array<string>; userStatuses: Array<MetadataUserStatuseItem>; subscriptionStatus?: string; survey?: Survey; }
973
- export type MetadataMigrated = { success: false; }
974
- export type Modules = { region?: boolean; report?: boolean; record?: boolean; mail?: boolean; location?: boolean; dispatch?: boolean; bulletin?: boolean; portal?: boolean; schedule?: boolean; geolocation?: boolean; patrol?: boolean; integrations?: boolean; dateFormat?: string; timeFormat?: string; }
975
- export type Settings = { dateFormat?: string; timeFormat?: string; userNameFormat?: number; module?: Module; }
976
- export type Module = { dispatch?: Dispatch; roster?: Roster; }
977
- export type Dispatch = { allowedDispatchTypeIds: AllowedDispatchTypeIds; dispatchTypeSettings?: DispatchTypeSettings; }
978
- export type AllowedDispatchTypeIds = { serviceCall?: boolean; userStatus?: boolean; }
979
- export type DispatchTypeSettings = { serviceCall: ServiceCall; }
980
- export type ServiceCall = { requireClearedWithReportEntry: boolean; }
981
- export type Roster = { userInfoAccessLevel: null | number; }
982
- export type MetadataUserStatuseItem = { color: string; geoTracking: boolean; title: string; sortPriority: number; }
983
- export type Survey = { referral?: string; currentlyUsingSystem?: string; organizationAppGoal?: string; currentSystemName?: string; currentSystemIssue?: string; contactMeForWalkThrough?: boolean; organizationAppGoalOther?: string; bestContactTime?: string; }
984
- export type Subscription = { _id: string; _migration?: SubscriptionMigration | MigrationType | null; stripeMetadata: StripeMetadata; status: string; organizationId: string; createdAt: string; statusDate: string; __v: number; trialEndDate?: string; activeUserCount?: number; statusMessage?: string | null; contact?: Contact; statusDelinquentAfterDate?: null; }
985
- export type SubscriptionMigration = { success: true; infinityOrgId: string; infinityId: string; infinityEntity: string; }
986
- export type MigrationType = { success: false; }
987
- export type StripeMetadata = { activeUsersUsageSubscriptionItemIds: Array<string>; paidInvoiceUrls: Array<string>; customerId?: string; monthlyUsersSubscriptionId: null | string; card?: Card; planId?: string | null; }
988
- export type Card = { brand: string; exp_month: number; exp_year: number; last4: number; }
989
- export type Contact = { email: string; name: string; phone: string; }
990
-
991
- export type Args = { pagination?: Pagination; organizations: Array<OrganizationItem>; }
992
-
993
- export type Data = { pagination?: Pagination; organizations: Array<OrganizationItem>; }
994
- }`.replace(/\s/g, ""));
995
- });
996
- });
997
- //# sourceMappingURL=TypescriptProcedureConverter.test.js.map