colibris-types 1.0.13 → 1.0.15
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/computers.d.ts +57 -1
- package/lib/computers.js +13 -2
- package/lib/index.d.ts +30 -1
- package/package.json +1 -1
package/lib/computers.d.ts
CHANGED
|
@@ -296,6 +296,34 @@ declare const PhoneLine: z.ZodObject<{
|
|
|
296
296
|
id_subsidiary?: number | undefined;
|
|
297
297
|
affectation_date?: Date | undefined;
|
|
298
298
|
}>;
|
|
299
|
+
declare const TelecomInvoiceSummary: z.ZodObject<{
|
|
300
|
+
id_telecom_invoice: z.ZodNumber;
|
|
301
|
+
id_asset: z.ZodNumber;
|
|
302
|
+
phone_number: z.ZodString;
|
|
303
|
+
date: z.ZodDate;
|
|
304
|
+
invoice_number: z.ZodString;
|
|
305
|
+
device: z.ZodString;
|
|
306
|
+
amount: z.ZodNumber;
|
|
307
|
+
total_overage_amount: z.ZodNumber;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
date: Date;
|
|
310
|
+
id_asset: number;
|
|
311
|
+
id_telecom_invoice: number;
|
|
312
|
+
phone_number: string;
|
|
313
|
+
invoice_number: string;
|
|
314
|
+
device: string;
|
|
315
|
+
amount: number;
|
|
316
|
+
total_overage_amount: number;
|
|
317
|
+
}, {
|
|
318
|
+
date: Date;
|
|
319
|
+
id_asset: number;
|
|
320
|
+
id_telecom_invoice: number;
|
|
321
|
+
phone_number: string;
|
|
322
|
+
invoice_number: string;
|
|
323
|
+
device: string;
|
|
324
|
+
amount: number;
|
|
325
|
+
total_overage_amount: number;
|
|
326
|
+
}>;
|
|
299
327
|
declare const TicketAssetDetail: z.ZodObject<{
|
|
300
328
|
id_company: z.ZodNumber;
|
|
301
329
|
id_ticket_asset_detail: z.ZodNumber;
|
|
@@ -995,6 +1023,34 @@ export declare const assetDefinitions: {
|
|
|
995
1023
|
id_subsidiary?: number | undefined;
|
|
996
1024
|
affectation_date?: Date | undefined;
|
|
997
1025
|
}>;
|
|
1026
|
+
telecom_invoice_summary: z.ZodObject<{
|
|
1027
|
+
id_telecom_invoice: z.ZodNumber;
|
|
1028
|
+
id_asset: z.ZodNumber;
|
|
1029
|
+
phone_number: z.ZodString;
|
|
1030
|
+
date: z.ZodDate;
|
|
1031
|
+
invoice_number: z.ZodString;
|
|
1032
|
+
device: z.ZodString;
|
|
1033
|
+
amount: z.ZodNumber;
|
|
1034
|
+
total_overage_amount: z.ZodNumber;
|
|
1035
|
+
}, "strip", z.ZodTypeAny, {
|
|
1036
|
+
date: Date;
|
|
1037
|
+
id_asset: number;
|
|
1038
|
+
id_telecom_invoice: number;
|
|
1039
|
+
phone_number: string;
|
|
1040
|
+
invoice_number: string;
|
|
1041
|
+
device: string;
|
|
1042
|
+
amount: number;
|
|
1043
|
+
total_overage_amount: number;
|
|
1044
|
+
}, {
|
|
1045
|
+
date: Date;
|
|
1046
|
+
id_asset: number;
|
|
1047
|
+
id_telecom_invoice: number;
|
|
1048
|
+
phone_number: string;
|
|
1049
|
+
invoice_number: string;
|
|
1050
|
+
device: string;
|
|
1051
|
+
amount: number;
|
|
1052
|
+
total_overage_amount: number;
|
|
1053
|
+
}>;
|
|
998
1054
|
ticket_asset_detail: z.ZodObject<{
|
|
999
1055
|
id_company: z.ZodNumber;
|
|
1000
1056
|
id_ticket_asset_detail: z.ZodNumber;
|
|
@@ -1051,4 +1107,4 @@ export declare const assetDefinitions: {
|
|
|
1051
1107
|
id_ticket_type: number;
|
|
1052
1108
|
}>;
|
|
1053
1109
|
};
|
|
1054
|
-
export { AssetGenre, AssetStatus, AssetType, Asset, AssetUpload, Computer, ComputerUpload, CsrData, GroupGenre, Group, PhoneLine, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, };
|
|
1110
|
+
export { AssetGenre, AssetStatus, AssetType, Asset, AssetUpload, Computer, ComputerUpload, CsrData, GroupGenre, Group, PhoneLine, TelecomInvoiceSummary, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, };
|
package/lib/computers.js
CHANGED
|
@@ -77,6 +77,16 @@ const Group = Model.extend({
|
|
|
77
77
|
label: z.string().max(50),
|
|
78
78
|
});
|
|
79
79
|
const PhoneLine = Asset.extend({});
|
|
80
|
+
const TelecomInvoiceSummary = z.object({
|
|
81
|
+
id_telecom_invoice: z.number(),
|
|
82
|
+
id_asset: z.number(),
|
|
83
|
+
phone_number: z.string().max(50),
|
|
84
|
+
date: z.coerce.date(),
|
|
85
|
+
invoice_number: z.string().max(200),
|
|
86
|
+
device: z.string().max(200),
|
|
87
|
+
amount: z.coerce.number(),
|
|
88
|
+
total_overage_amount: z.coerce.number(),
|
|
89
|
+
});
|
|
80
90
|
const TicketAssetDetail = Model.extend({
|
|
81
91
|
id_ticket_asset_detail: z.number(),
|
|
82
92
|
id_ticket: z.number(),
|
|
@@ -135,7 +145,7 @@ const ComputerUpload = z.object({
|
|
|
135
145
|
ExitDate: z.coerce.date().optional(),
|
|
136
146
|
ExitReason: z.string().optional(),
|
|
137
147
|
AuditDate: z.coerce.date().optional(),
|
|
138
|
-
ValorisationAmount: z.number().optional(),
|
|
148
|
+
ValorisationAmount: z.coerce.number().optional(),
|
|
139
149
|
ReturnCosts: z.coerce.number().optional(),
|
|
140
150
|
AuditGrade: z.string().optional(),
|
|
141
151
|
InsuranceRefundAmount: z.coerce.number().optional(),
|
|
@@ -173,10 +183,11 @@ export const assetDefinitions = {
|
|
|
173
183
|
group_genre: GroupGenre,
|
|
174
184
|
group: Group,
|
|
175
185
|
phone_line: PhoneLine,
|
|
186
|
+
telecom_invoice_summary: TelecomInvoiceSummary,
|
|
176
187
|
ticket_asset_detail: TicketAssetDetail,
|
|
177
188
|
ticket_priority: TicketPriority,
|
|
178
189
|
ticket_status: TicketStatus,
|
|
179
190
|
ticket_type: TicketType,
|
|
180
191
|
};
|
|
181
|
-
export { AssetGenre, AssetStatus, AssetType, Asset, AssetUpload, Computer, ComputerUpload, CsrData, GroupGenre, Group, PhoneLine, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, };
|
|
192
|
+
export { AssetGenre, AssetStatus, AssetType, Asset, AssetUpload, Computer, ComputerUpload, CsrData, GroupGenre, Group, PhoneLine, TelecomInvoiceSummary, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, };
|
|
182
193
|
//end asset data section
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Model } from "./base.js";
|
|
3
3
|
import { CompaniesRelation, CompaniesRelationType, Contact, Job, JobCategory, JobType, People, PeopleUpload, Site, SiteAddress, SiteLocation, StockSite, Subsidiary, SubsidiaryUpload, organizationDefinitions } from "./org.js";
|
|
4
|
-
import { Asset, AssetGenre, AssetStatus, AssetType, Computer, ComputerUpload, CsrData, Group, GroupGenre, PhoneLine, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, assetDefinitions } from "./computers.js";
|
|
4
|
+
import { Asset, AssetGenre, AssetStatus, AssetType, Computer, ComputerUpload, CsrData, Group, GroupGenre, PhoneLine, TelecomInvoiceSummary, TicketAssetDetail, TicketPriority, TicketStatus, TicketType, assetDefinitions } from "./computers.js";
|
|
5
5
|
export { organizationDefinitions, assetDefinitions };
|
|
6
6
|
export declare const schemasDefinitions: {
|
|
7
7
|
asset_genre: z.ZodObject<{
|
|
@@ -474,6 +474,34 @@ export declare const schemasDefinitions: {
|
|
|
474
474
|
id_subsidiary?: number | undefined;
|
|
475
475
|
affectation_date?: Date | undefined;
|
|
476
476
|
}>;
|
|
477
|
+
telecom_invoice_summary: z.ZodObject<{
|
|
478
|
+
id_telecom_invoice: z.ZodNumber;
|
|
479
|
+
id_asset: z.ZodNumber;
|
|
480
|
+
phone_number: z.ZodString;
|
|
481
|
+
date: z.ZodDate;
|
|
482
|
+
invoice_number: z.ZodString;
|
|
483
|
+
device: z.ZodString;
|
|
484
|
+
amount: z.ZodNumber;
|
|
485
|
+
total_overage_amount: z.ZodNumber;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
date: Date;
|
|
488
|
+
id_asset: number;
|
|
489
|
+
id_telecom_invoice: number;
|
|
490
|
+
phone_number: string;
|
|
491
|
+
invoice_number: string;
|
|
492
|
+
device: string;
|
|
493
|
+
amount: number;
|
|
494
|
+
total_overage_amount: number;
|
|
495
|
+
}, {
|
|
496
|
+
date: Date;
|
|
497
|
+
id_asset: number;
|
|
498
|
+
id_telecom_invoice: number;
|
|
499
|
+
phone_number: string;
|
|
500
|
+
invoice_number: string;
|
|
501
|
+
device: string;
|
|
502
|
+
amount: number;
|
|
503
|
+
total_overage_amount: number;
|
|
504
|
+
}>;
|
|
477
505
|
ticket_asset_detail: z.ZodObject<{
|
|
478
506
|
id_company: z.ZodNumber;
|
|
479
507
|
id_ticket_asset_detail: z.ZodNumber;
|
|
@@ -862,6 +890,7 @@ export type CsrData = z.infer<typeof CsrData>;
|
|
|
862
890
|
export type GroupGenre = z.infer<typeof GroupGenre>;
|
|
863
891
|
export type Group = z.infer<typeof Group>;
|
|
864
892
|
export type PhoneLine = z.infer<typeof PhoneLine>;
|
|
893
|
+
export type TelecomInvoiceSummary = z.infer<typeof TelecomInvoiceSummary>;
|
|
865
894
|
export type TicketAssetDetail = z.infer<typeof TicketAssetDetail>;
|
|
866
895
|
export type TicketPriority = z.infer<typeof TicketPriority>;
|
|
867
896
|
export type TicketStatus = z.infer<typeof TicketStatus>;
|