colibris-types 1.0.18 → 1.0.20

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/lib/index.d.ts CHANGED
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
  import { Model } from "./base.js";
3
- import { CompaniesRelation, CompaniesRelationType, Contact, Job, JobCategory, JobType, LicenseTraceUpload, People, PeopleUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, organizationDefinitions } from "./org.js";
3
+ import { CompaniesRelation, CompaniesRelationType, Contact, Job, JobCategory, JobType, People, PeopleUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, organizationDefinitions } from "./org.js";
4
4
  import { Asset, AssetGenre, AssetStatus, AssetType, Computer, ComputerUpload, CsrData, Group, GroupGenre, PhoneLine, TelecomInvoiceSummary, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, assetDefinitions } from "./computers.js";
5
- export { organizationDefinitions, assetDefinitions };
5
+ import { licenseDefintions, LicenseTraceUpload } from "./licenses.js";
6
+ export { organizationDefinitions, assetDefinitions, licenseDefintions };
6
7
  export declare const schemasDefinitions: {
8
+ license_trace_upload: z.ZodObject<{
9
+ usageDate: z.ZodDate;
10
+ productName: z.ZodOptional<z.ZodString>;
11
+ productVersion: z.ZodOptional<z.ZodNumber>;
12
+ userName: z.ZodString;
13
+ machineName: z.ZodOptional<z.ZodString>;
14
+ licenseServerName: z.ZodOptional<z.ZodString>;
15
+ usageType: z.ZodOptional<z.ZodString>;
16
+ country: z.ZodOptional<z.ZodString>;
17
+ subsidiary: z.ZodOptional<z.ZodString>;
18
+ site: z.ZodOptional<z.ZodString>;
19
+ employeeId: z.ZodOptional<z.ZodString>;
20
+ tokensConsumed: z.ZodOptional<z.ZodNumber>;
21
+ useCount: z.ZodOptional<z.ZodNumber>;
22
+ usageHours: z.ZodOptional<z.ZodNumber>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ usageDate: Date;
25
+ userName: string;
26
+ productName?: string | undefined;
27
+ productVersion?: number | undefined;
28
+ machineName?: string | undefined;
29
+ licenseServerName?: string | undefined;
30
+ usageType?: string | undefined;
31
+ country?: string | undefined;
32
+ subsidiary?: string | undefined;
33
+ site?: string | undefined;
34
+ employeeId?: string | undefined;
35
+ tokensConsumed?: number | undefined;
36
+ useCount?: number | undefined;
37
+ usageHours?: number | undefined;
38
+ }, {
39
+ usageDate: Date;
40
+ userName: string;
41
+ productName?: string | undefined;
42
+ productVersion?: number | undefined;
43
+ machineName?: string | undefined;
44
+ licenseServerName?: string | undefined;
45
+ usageType?: string | undefined;
46
+ country?: string | undefined;
47
+ subsidiary?: string | undefined;
48
+ site?: string | undefined;
49
+ employeeId?: string | undefined;
50
+ tokensConsumed?: number | undefined;
51
+ useCount?: number | undefined;
52
+ usageHours?: number | undefined;
53
+ }>;
7
54
  asset_genre: z.ZodObject<{
8
55
  id_company: z.ZodNumber;
9
56
  id_asset_genre: z.ZodNumber;
@@ -872,52 +919,6 @@ export declare const schemasDefinitions: {
872
919
  Name: string;
873
920
  ParentName?: string | undefined;
874
921
  }>;
875
- license_trace_upload: z.ZodObject<{
876
- usageDate: z.ZodDate;
877
- productName: z.ZodOptional<z.ZodString>;
878
- productVersion: z.ZodOptional<z.ZodNumber>;
879
- userName: z.ZodString;
880
- machineName: z.ZodOptional<z.ZodString>;
881
- licenseServerName: z.ZodOptional<z.ZodString>;
882
- usageType: z.ZodOptional<z.ZodString>;
883
- country: z.ZodOptional<z.ZodString>;
884
- subsidiary: z.ZodOptional<z.ZodString>;
885
- site: z.ZodOptional<z.ZodString>;
886
- employeeId: z.ZodOptional<z.ZodString>;
887
- tokensConsumed: z.ZodOptional<z.ZodNumber>;
888
- useCount: z.ZodOptional<z.ZodNumber>;
889
- usageHours: z.ZodOptional<z.ZodNumber>;
890
- }, "strip", z.ZodTypeAny, {
891
- usageDate: Date;
892
- userName: string;
893
- productName?: string | undefined;
894
- productVersion?: number | undefined;
895
- machineName?: string | undefined;
896
- licenseServerName?: string | undefined;
897
- usageType?: string | undefined;
898
- country?: string | undefined;
899
- subsidiary?: string | undefined;
900
- site?: string | undefined;
901
- employeeId?: string | undefined;
902
- tokensConsumed?: number | undefined;
903
- useCount?: number | undefined;
904
- usageHours?: number | undefined;
905
- }, {
906
- usageDate: Date;
907
- userName: string;
908
- productName?: string | undefined;
909
- productVersion?: number | undefined;
910
- machineName?: string | undefined;
911
- licenseServerName?: string | undefined;
912
- usageType?: string | undefined;
913
- country?: string | undefined;
914
- subsidiary?: string | undefined;
915
- site?: string | undefined;
916
- employeeId?: string | undefined;
917
- tokensConsumed?: number | undefined;
918
- useCount?: number | undefined;
919
- usageHours?: number | undefined;
920
- }>;
921
922
  };
922
923
  export type Model = z.infer<typeof Model>;
923
924
  export type CompaniesRelationType = z.infer<typeof CompaniesRelationType>;
@@ -936,8 +937,6 @@ export type StockSite = z.infer<typeof StockSite>;
936
937
  export type Subsidiary = z.infer<typeof Subsidiary>;
937
938
  export type SubsidiaryUpload = z.infer<typeof SubsidiaryUpload>;
938
939
  export type SubsidiaryUploadType = typeof SubsidiaryUpload;
939
- export type LicenseTraceUpload = z.infer<typeof LicenseTraceUpload>;
940
- export type LicenseTraceUploadType = typeof LicenseTraceUpload;
941
940
  export type AssetGenre = z.infer<typeof AssetGenre>;
942
941
  export type AssetStatus = z.infer<typeof AssetStatus>;
943
942
  export type AssetType = z.infer<typeof AssetType>;
@@ -954,3 +953,5 @@ export type TicketStatus = z.infer<typeof TicketStatus>;
954
953
  export type TicketType = z.infer<typeof TicketType>;
955
954
  export type ComputerUpload = z.infer<typeof ComputerUpload>;
956
955
  export type ComputerUploadType = typeof ComputerUpload;
956
+ export type LicenseTraceUpload = z.infer<typeof LicenseTraceUpload>;
957
+ export type LicenseTraceUploadType = typeof LicenseTraceUpload;
package/lib/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import { organizationDefinitions, } from "./org.js";
2
2
  import { assetDefinitions, } from "./computers.js";
3
- export { organizationDefinitions, assetDefinitions };
3
+ import { licenseDefintions } from "./licenses.js";
4
+ export { organizationDefinitions, assetDefinitions, licenseDefintions };
4
5
  export const schemasDefinitions = {
5
6
  ...organizationDefinitions,
6
7
  ...assetDefinitions,
8
+ ...licenseDefintions,
7
9
  };
@@ -0,0 +1,96 @@
1
+ import { z } from "zod";
2
+ declare const LicenseTraceUpload: z.ZodObject<{
3
+ usageDate: z.ZodDate;
4
+ productName: z.ZodOptional<z.ZodString>;
5
+ productVersion: z.ZodOptional<z.ZodNumber>;
6
+ userName: z.ZodString;
7
+ machineName: z.ZodOptional<z.ZodString>;
8
+ licenseServerName: z.ZodOptional<z.ZodString>;
9
+ usageType: z.ZodOptional<z.ZodString>;
10
+ country: z.ZodOptional<z.ZodString>;
11
+ subsidiary: z.ZodOptional<z.ZodString>;
12
+ site: z.ZodOptional<z.ZodString>;
13
+ employeeId: z.ZodOptional<z.ZodString>;
14
+ tokensConsumed: z.ZodOptional<z.ZodNumber>;
15
+ useCount: z.ZodOptional<z.ZodNumber>;
16
+ usageHours: z.ZodOptional<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ usageDate: Date;
19
+ userName: string;
20
+ productName?: string | undefined;
21
+ productVersion?: number | undefined;
22
+ machineName?: string | undefined;
23
+ licenseServerName?: string | undefined;
24
+ usageType?: string | undefined;
25
+ country?: string | undefined;
26
+ subsidiary?: string | undefined;
27
+ site?: string | undefined;
28
+ employeeId?: string | undefined;
29
+ tokensConsumed?: number | undefined;
30
+ useCount?: number | undefined;
31
+ usageHours?: number | undefined;
32
+ }, {
33
+ usageDate: Date;
34
+ userName: string;
35
+ productName?: string | undefined;
36
+ productVersion?: number | undefined;
37
+ machineName?: string | undefined;
38
+ licenseServerName?: string | undefined;
39
+ usageType?: string | undefined;
40
+ country?: string | undefined;
41
+ subsidiary?: string | undefined;
42
+ site?: string | undefined;
43
+ employeeId?: string | undefined;
44
+ tokensConsumed?: number | undefined;
45
+ useCount?: number | undefined;
46
+ usageHours?: number | undefined;
47
+ }>;
48
+ export declare const licenseDefintions: {
49
+ license_trace_upload: z.ZodObject<{
50
+ usageDate: z.ZodDate;
51
+ productName: z.ZodOptional<z.ZodString>;
52
+ productVersion: z.ZodOptional<z.ZodNumber>;
53
+ userName: z.ZodString;
54
+ machineName: z.ZodOptional<z.ZodString>;
55
+ licenseServerName: z.ZodOptional<z.ZodString>;
56
+ usageType: z.ZodOptional<z.ZodString>;
57
+ country: z.ZodOptional<z.ZodString>;
58
+ subsidiary: z.ZodOptional<z.ZodString>;
59
+ site: z.ZodOptional<z.ZodString>;
60
+ employeeId: z.ZodOptional<z.ZodString>;
61
+ tokensConsumed: z.ZodOptional<z.ZodNumber>;
62
+ useCount: z.ZodOptional<z.ZodNumber>;
63
+ usageHours: z.ZodOptional<z.ZodNumber>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ usageDate: Date;
66
+ userName: string;
67
+ productName?: string | undefined;
68
+ productVersion?: number | undefined;
69
+ machineName?: string | undefined;
70
+ licenseServerName?: string | undefined;
71
+ usageType?: string | undefined;
72
+ country?: string | undefined;
73
+ subsidiary?: string | undefined;
74
+ site?: string | undefined;
75
+ employeeId?: string | undefined;
76
+ tokensConsumed?: number | undefined;
77
+ useCount?: number | undefined;
78
+ usageHours?: number | undefined;
79
+ }, {
80
+ usageDate: Date;
81
+ userName: string;
82
+ productName?: string | undefined;
83
+ productVersion?: number | undefined;
84
+ machineName?: string | undefined;
85
+ licenseServerName?: string | undefined;
86
+ usageType?: string | undefined;
87
+ country?: string | undefined;
88
+ subsidiary?: string | undefined;
89
+ site?: string | undefined;
90
+ employeeId?: string | undefined;
91
+ tokensConsumed?: number | undefined;
92
+ useCount?: number | undefined;
93
+ usageHours?: number | undefined;
94
+ }>;
95
+ };
96
+ export { LicenseTraceUpload };
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ const LicenseTraceUpload = z.object({
3
+ usageDate: z.coerce.date(),
4
+ productName: z.string().optional(),
5
+ productVersion: z.coerce.number().optional(),
6
+ userName: z.string(),
7
+ machineName: z.string().optional(),
8
+ licenseServerName: z.string().optional(),
9
+ usageType: z.string().optional(),
10
+ country: z.string().optional(),
11
+ subsidiary: z.string().optional(),
12
+ site: z.string().optional(),
13
+ employeeId: z.string().optional(),
14
+ tokensConsumed: z.coerce.number().optional(),
15
+ useCount: z.coerce.number().optional(),
16
+ usageHours: z.coerce.number().optional(),
17
+ });
18
+ export const licenseDefintions = {
19
+ license_trace_upload: LicenseTraceUpload,
20
+ };
21
+ export { LicenseTraceUpload };
package/lib/org.d.ts CHANGED
@@ -298,52 +298,6 @@ declare const PeopleUpload: z.ZodObject<{
298
298
  JobTypes?: string | undefined;
299
299
  ExitDate?: Date | undefined;
300
300
  }>;
301
- declare const LicenseTraceUpload: z.ZodObject<{
302
- usageDate: z.ZodDate;
303
- productName: z.ZodOptional<z.ZodString>;
304
- productVersion: z.ZodOptional<z.ZodNumber>;
305
- userName: z.ZodString;
306
- machineName: z.ZodOptional<z.ZodString>;
307
- licenseServerName: z.ZodOptional<z.ZodString>;
308
- usageType: z.ZodOptional<z.ZodString>;
309
- country: z.ZodOptional<z.ZodString>;
310
- subsidiary: z.ZodOptional<z.ZodString>;
311
- site: z.ZodOptional<z.ZodString>;
312
- employeeId: z.ZodOptional<z.ZodString>;
313
- tokensConsumed: z.ZodOptional<z.ZodNumber>;
314
- useCount: z.ZodOptional<z.ZodNumber>;
315
- usageHours: z.ZodOptional<z.ZodNumber>;
316
- }, "strip", z.ZodTypeAny, {
317
- usageDate: Date;
318
- userName: string;
319
- productName?: string | undefined;
320
- productVersion?: number | undefined;
321
- machineName?: string | undefined;
322
- licenseServerName?: string | undefined;
323
- usageType?: string | undefined;
324
- country?: string | undefined;
325
- subsidiary?: string | undefined;
326
- site?: string | undefined;
327
- employeeId?: string | undefined;
328
- tokensConsumed?: number | undefined;
329
- useCount?: number | undefined;
330
- usageHours?: number | undefined;
331
- }, {
332
- usageDate: Date;
333
- userName: string;
334
- productName?: string | undefined;
335
- productVersion?: number | undefined;
336
- machineName?: string | undefined;
337
- licenseServerName?: string | undefined;
338
- usageType?: string | undefined;
339
- country?: string | undefined;
340
- subsidiary?: string | undefined;
341
- site?: string | undefined;
342
- employeeId?: string | undefined;
343
- tokensConsumed?: number | undefined;
344
- useCount?: number | undefined;
345
- usageHours?: number | undefined;
346
- }>;
347
301
  export declare const organizationDefinitions: {
348
302
  model: z.ZodObject<{
349
303
  id_company: z.ZodNumber;
@@ -651,51 +605,5 @@ export declare const organizationDefinitions: {
651
605
  Name: string;
652
606
  ParentName?: string | undefined;
653
607
  }>;
654
- license_trace_upload: z.ZodObject<{
655
- usageDate: z.ZodDate;
656
- productName: z.ZodOptional<z.ZodString>;
657
- productVersion: z.ZodOptional<z.ZodNumber>;
658
- userName: z.ZodString;
659
- machineName: z.ZodOptional<z.ZodString>;
660
- licenseServerName: z.ZodOptional<z.ZodString>;
661
- usageType: z.ZodOptional<z.ZodString>;
662
- country: z.ZodOptional<z.ZodString>;
663
- subsidiary: z.ZodOptional<z.ZodString>;
664
- site: z.ZodOptional<z.ZodString>;
665
- employeeId: z.ZodOptional<z.ZodString>;
666
- tokensConsumed: z.ZodOptional<z.ZodNumber>;
667
- useCount: z.ZodOptional<z.ZodNumber>;
668
- usageHours: z.ZodOptional<z.ZodNumber>;
669
- }, "strip", z.ZodTypeAny, {
670
- usageDate: Date;
671
- userName: string;
672
- productName?: string | undefined;
673
- productVersion?: number | undefined;
674
- machineName?: string | undefined;
675
- licenseServerName?: string | undefined;
676
- usageType?: string | undefined;
677
- country?: string | undefined;
678
- subsidiary?: string | undefined;
679
- site?: string | undefined;
680
- employeeId?: string | undefined;
681
- tokensConsumed?: number | undefined;
682
- useCount?: number | undefined;
683
- usageHours?: number | undefined;
684
- }, {
685
- usageDate: Date;
686
- userName: string;
687
- productName?: string | undefined;
688
- productVersion?: number | undefined;
689
- machineName?: string | undefined;
690
- licenseServerName?: string | undefined;
691
- usageType?: string | undefined;
692
- country?: string | undefined;
693
- subsidiary?: string | undefined;
694
- site?: string | undefined;
695
- employeeId?: string | undefined;
696
- tokensConsumed?: number | undefined;
697
- useCount?: number | undefined;
698
- usageHours?: number | undefined;
699
- }>;
700
608
  };
701
- export { CompaniesRelationType, CompaniesRelation, Contact, Job, JobCategory, JobType, People, PeopleUpload, LicenseTraceUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, };
609
+ export { CompaniesRelationType, CompaniesRelation, Contact, Job, JobCategory, JobType, People, PeopleUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, };
package/lib/org.js CHANGED
@@ -98,22 +98,6 @@ const PeopleUpload = z.object({
98
98
  JobTypes: z.string().optional(),
99
99
  ExitDate: z.coerce.date().optional(),
100
100
  });
101
- const LicenseTraceUpload = z.object({
102
- usageDate: z.coerce.date(),
103
- productName: z.string().optional(),
104
- productVersion: z.coerce.number().optional(),
105
- userName: z.string(),
106
- machineName: z.string().optional(),
107
- licenseServerName: z.string().optional(),
108
- usageType: z.string().optional(),
109
- country: z.string().optional(),
110
- subsidiary: z.string().optional(),
111
- site: z.string().optional(),
112
- employeeId: z.string().optional(),
113
- tokensConsumed: z.coerce.number().optional(),
114
- useCount: z.coerce.number().optional(),
115
- usageHours: z.coerce.number().optional(),
116
- });
117
101
  export const organizationDefinitions = {
118
102
  model: Model,
119
103
  company_relation_type: CompaniesRelationType,
@@ -130,7 +114,6 @@ export const organizationDefinitions = {
130
114
  stock_site: StockSite,
131
115
  subsidiary: Subsidiary,
132
116
  subsidiary_upload: SubsidiaryUpload,
133
- license_trace_upload: LicenseTraceUpload,
134
117
  };
135
- export { CompaniesRelationType, CompaniesRelation, Contact, Job, JobCategory, JobType, People, PeopleUpload, LicenseTraceUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, };
118
+ export { CompaniesRelationType, CompaniesRelation, Contact, Job, JobCategory, JobType, People, PeopleUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, };
136
119
  //end organization data section
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibris-types",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",