@primocaredentgroup/elettromedicali 0.1.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.
- package/dist/client/index.d.ts +72 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +233 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +94 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +1444 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/apiKeys.d.ts +69 -0
- package/dist/component/apiKeys.d.ts.map +1 -0
- package/dist/component/apiKeys.js +207 -0
- package/dist/component/apiKeys.js.map +1 -0
- package/dist/component/clinics.d.ts +103 -0
- package/dist/component/clinics.d.ts.map +1 -0
- package/dist/component/clinics.js +126 -0
- package/dist/component/clinics.js.map +1 -0
- package/dist/component/contracts.d.ts +85 -0
- package/dist/component/contracts.d.ts.map +1 -0
- package/dist/component/contracts.js +115 -0
- package/dist/component/contracts.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/crons.d.ts +3 -0
- package/dist/component/crons.d.ts.map +1 -0
- package/dist/component/crons.js +7 -0
- package/dist/component/crons.js.map +1 -0
- package/dist/component/dashboardStats.d.ts +14 -0
- package/dist/component/dashboardStats.d.ts.map +1 -0
- package/dist/component/dashboardStats.js +136 -0
- package/dist/component/dashboardStats.js.map +1 -0
- package/dist/component/dashboardStatsCache.d.ts +32 -0
- package/dist/component/dashboardStatsCache.d.ts.map +1 -0
- package/dist/component/dashboardStatsCache.js +129 -0
- package/dist/component/dashboardStatsCache.js.map +1 -0
- package/dist/component/deviceCategories.d.ts +108 -0
- package/dist/component/deviceCategories.d.ts.map +1 -0
- package/dist/component/deviceCategories.js +254 -0
- package/dist/component/deviceCategories.js.map +1 -0
- package/dist/component/deviceQuestions.d.ts +129 -0
- package/dist/component/deviceQuestions.d.ts.map +1 -0
- package/dist/component/deviceQuestions.js +175 -0
- package/dist/component/deviceQuestions.js.map +1 -0
- package/dist/component/deviceRepairHistory.d.ts +30 -0
- package/dist/component/deviceRepairHistory.d.ts.map +1 -0
- package/dist/component/deviceRepairHistory.js +84 -0
- package/dist/component/deviceRepairHistory.js.map +1 -0
- package/dist/component/deviceStatus.d.ts +63 -0
- package/dist/component/deviceStatus.d.ts.map +1 -0
- package/dist/component/deviceStatus.js +58 -0
- package/dist/component/deviceStatus.js.map +1 -0
- package/dist/component/devices.d.ts +299 -0
- package/dist/component/devices.d.ts.map +1 -0
- package/dist/component/devices.js +587 -0
- package/dist/component/devices.js.map +1 -0
- package/dist/component/emailHelpers.d.ts +17 -0
- package/dist/component/emailHelpers.d.ts.map +1 -0
- package/dist/component/emailHelpers.js +39 -0
- package/dist/component/emailHelpers.js.map +1 -0
- package/dist/component/emails.d.ts +56 -0
- package/dist/component/emails.d.ts.map +1 -0
- package/dist/component/emails.js +58 -0
- package/dist/component/emails.js.map +1 -0
- package/dist/component/http.d.ts +3 -0
- package/dist/component/http.d.ts.map +1 -0
- package/dist/component/http.js +229 -0
- package/dist/component/http.js.map +1 -0
- package/dist/component/maintenanceTasks.d.ts +733 -0
- package/dist/component/maintenanceTasks.d.ts.map +1 -0
- package/dist/component/maintenanceTasks.js +937 -0
- package/dist/component/maintenanceTasks.js.map +1 -0
- package/dist/component/roles.d.ts +75 -0
- package/dist/component/roles.d.ts.map +1 -0
- package/dist/component/roles.js +98 -0
- package/dist/component/roles.js.map +1 -0
- package/dist/component/schema.d.ts +1295 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +724 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/slaMonitoring.d.ts +32 -0
- package/dist/component/slaMonitoring.d.ts.map +1 -0
- package/dist/component/slaMonitoring.js +111 -0
- package/dist/component/slaMonitoring.js.map +1 -0
- package/dist/component/slaRules.d.ts +72 -0
- package/dist/component/slaRules.d.ts.map +1 -0
- package/dist/component/slaRules.js +193 -0
- package/dist/component/slaRules.js.map +1 -0
- package/dist/component/sparePartOrders.d.ts +177 -0
- package/dist/component/sparePartOrders.d.ts.map +1 -0
- package/dist/component/sparePartOrders.js +243 -0
- package/dist/component/sparePartOrders.js.map +1 -0
- package/dist/component/spareParts.d.ts +472 -0
- package/dist/component/spareParts.d.ts.map +1 -0
- package/dist/component/spareParts.js +319 -0
- package/dist/component/spareParts.js.map +1 -0
- package/dist/component/supplierCategories.d.ts +22 -0
- package/dist/component/supplierCategories.d.ts.map +1 -0
- package/dist/component/supplierCategories.js +64 -0
- package/dist/component/supplierCategories.js.map +1 -0
- package/dist/component/suppliers.d.ts +94 -0
- package/dist/component/suppliers.d.ts.map +1 -0
- package/dist/component/suppliers.js +195 -0
- package/dist/component/suppliers.js.map +1 -0
- package/dist/component/ticketComments.d.ts +89 -0
- package/dist/component/ticketComments.d.ts.map +1 -0
- package/dist/component/ticketComments.js +246 -0
- package/dist/component/ticketComments.js.map +1 -0
- package/dist/component/ticketCustomFields.d.ts +149 -0
- package/dist/component/ticketCustomFields.d.ts.map +1 -0
- package/dist/component/ticketCustomFields.js +215 -0
- package/dist/component/ticketCustomFields.js.map +1 -0
- package/dist/component/ticketExport.d.ts +83 -0
- package/dist/component/ticketExport.d.ts.map +1 -0
- package/dist/component/ticketExport.js +182 -0
- package/dist/component/ticketExport.js.map +1 -0
- package/dist/component/ticketHistory.d.ts +57 -0
- package/dist/component/ticketHistory.d.ts.map +1 -0
- package/dist/component/ticketHistory.js +81 -0
- package/dist/component/ticketHistory.js.map +1 -0
- package/dist/component/ticketMacros.d.ts +141 -0
- package/dist/component/ticketMacros.d.ts.map +1 -0
- package/dist/component/ticketMacros.js +255 -0
- package/dist/component/ticketMacros.js.map +1 -0
- package/dist/component/ticketStatuses.d.ts +60 -0
- package/dist/component/ticketStatuses.d.ts.map +1 -0
- package/dist/component/ticketStatuses.js +110 -0
- package/dist/component/ticketStatuses.js.map +1 -0
- package/dist/component/ticketTriggers.d.ts +408 -0
- package/dist/component/ticketTriggers.d.ts.map +1 -0
- package/dist/component/ticketTriggers.js +941 -0
- package/dist/component/ticketTriggers.js.map +1 -0
- package/dist/component/userProfiles.d.ts +259 -0
- package/dist/component/userProfiles.d.ts.map +1 -0
- package/dist/component/userProfiles.js +634 -0
- package/dist/component/userProfiles.js.map +1 -0
- package/dist/component/vendorArticles.d.ts +64 -0
- package/dist/component/vendorArticles.d.ts.map +1 -0
- package/dist/component/vendorArticles.js +116 -0
- package/dist/component/vendorArticles.js.map +1 -0
- package/dist/test.d.ts +1302 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +7 -0
- package/dist/test.js.map +1 -0
- package/package.json +71 -0
- package/src/client/index.ts +344 -0
- package/src/component/_generated/api.ts +110 -0
- package/src/component/_generated/component.ts +2460 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/component/apiKeys.ts +229 -0
- package/src/component/clinics.ts +136 -0
- package/src/component/contracts.ts +136 -0
- package/src/component/convex.config.js +2 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/crons.ts +18 -0
- package/src/component/dashboardStats.ts +141 -0
- package/src/component/dashboardStatsCache.ts +145 -0
- package/src/component/deviceCategories.ts +280 -0
- package/src/component/deviceQuestions.ts +225 -0
- package/src/component/deviceRepairHistory.ts +94 -0
- package/src/component/deviceStatus.ts +79 -0
- package/src/component/devices.ts +645 -0
- package/src/component/emailHelpers.ts +38 -0
- package/src/component/emails.ts +61 -0
- package/src/component/http.ts +231 -0
- package/src/component/maintenanceTasks.ts +1003 -0
- package/src/component/roles.ts +99 -0
- package/src/component/schema.ts +842 -0
- package/src/component/slaMonitoring.ts +125 -0
- package/src/component/slaRules.ts +231 -0
- package/src/component/sparePartOrders.ts +290 -0
- package/src/component/spareParts.ts +362 -0
- package/src/component/supplierCategories.ts +65 -0
- package/src/component/suppliers.ts +234 -0
- package/src/component/ticketComments.ts +288 -0
- package/src/component/ticketCustomFields.ts +260 -0
- package/src/component/ticketExport.ts +220 -0
- package/src/component/ticketHistory.ts +106 -0
- package/src/component/ticketMacros.ts +291 -0
- package/src/component/ticketStatuses.ts +109 -0
- package/src/component/ticketTriggers.ts +1152 -0
- package/src/component/userProfiles.ts +745 -0
- package/src/component/vendorArticles.ts +139 -0
- package/src/test.ts +15 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const getAllVendorArticles: import("convex/server").RegisteredQuery<"public", {}, Promise<{
|
|
2
|
+
_id: import("convex/values").GenericId<"vendor_articles">;
|
|
3
|
+
_creationTime: number;
|
|
4
|
+
metadata?: any;
|
|
5
|
+
primoupVendorId?: string | undefined;
|
|
6
|
+
primoupArticleId?: string | undefined;
|
|
7
|
+
deviceId: import("convex/values").GenericId<"devices">;
|
|
8
|
+
vendorId: import("convex/values").GenericId<"suppliers">;
|
|
9
|
+
}[]>>;
|
|
10
|
+
export declare const createVendorArticle: import("convex/server").RegisteredMutation<"public", {
|
|
11
|
+
metadata?: any;
|
|
12
|
+
primoupVendorId?: string | undefined;
|
|
13
|
+
primoupArticleId?: string | undefined;
|
|
14
|
+
deviceId: import("convex/values").GenericId<"devices">;
|
|
15
|
+
vendorId: import("convex/values").GenericId<"suppliers">;
|
|
16
|
+
}, Promise<import("convex/values").GenericId<"vendor_articles">>>;
|
|
17
|
+
export declare const getTotalVendorArticlesCount: import("convex/server").RegisteredQuery<"public", {}, Promise<number>>;
|
|
18
|
+
export declare const getVendorArticlesByVendor: import("convex/server").RegisteredQuery<"public", {
|
|
19
|
+
vendorId: import("convex/values").GenericId<"suppliers">;
|
|
20
|
+
}, Promise<{
|
|
21
|
+
_id: import("convex/values").GenericId<"vendor_articles">;
|
|
22
|
+
_creationTime: number;
|
|
23
|
+
metadata?: any;
|
|
24
|
+
primoupVendorId?: string | undefined;
|
|
25
|
+
primoupArticleId?: string | undefined;
|
|
26
|
+
deviceId: import("convex/values").GenericId<"devices">;
|
|
27
|
+
vendorId: import("convex/values").GenericId<"suppliers">;
|
|
28
|
+
}[]>>;
|
|
29
|
+
export declare const getVendorArticlesByDevice: import("convex/server").RegisteredQuery<"public", {
|
|
30
|
+
deviceId: import("convex/values").GenericId<"devices">;
|
|
31
|
+
}, Promise<{
|
|
32
|
+
supplier: {
|
|
33
|
+
_id: import("convex/values").GenericId<"suppliers">;
|
|
34
|
+
name: string;
|
|
35
|
+
contact_email: string;
|
|
36
|
+
contact_phone: string;
|
|
37
|
+
} | null;
|
|
38
|
+
_id: import("convex/values").GenericId<"vendor_articles">;
|
|
39
|
+
_creationTime: number;
|
|
40
|
+
metadata?: any;
|
|
41
|
+
primoupVendorId?: string | undefined;
|
|
42
|
+
primoupArticleId?: string | undefined;
|
|
43
|
+
deviceId: import("convex/values").GenericId<"devices">;
|
|
44
|
+
vendorId: import("convex/values").GenericId<"suppliers">;
|
|
45
|
+
}[]>>;
|
|
46
|
+
export declare const getSuppliersByDeviceArticleId: import("convex/server").RegisteredQuery<"public", {
|
|
47
|
+
articleId: string;
|
|
48
|
+
}, Promise<{
|
|
49
|
+
_id: import("convex/values").GenericId<"suppliers">;
|
|
50
|
+
name: string;
|
|
51
|
+
contact_email: string;
|
|
52
|
+
contact_phone: string;
|
|
53
|
+
isPreferred: any;
|
|
54
|
+
vendorCode: any;
|
|
55
|
+
listPrice: any;
|
|
56
|
+
netPrice: any;
|
|
57
|
+
}[]>>;
|
|
58
|
+
export declare const deleteAllVendorArticlesBatch: import("convex/server").RegisteredMutation<"public", {
|
|
59
|
+
limit: number;
|
|
60
|
+
}, Promise<{
|
|
61
|
+
success: boolean;
|
|
62
|
+
deletedCount: number;
|
|
63
|
+
}>>;
|
|
64
|
+
//# sourceMappingURL=vendorArticles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorArticles.d.ts","sourceRoot":"","sources":["../../src/component/vendorArticles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;KAM/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;iEAgC9B,CAAC;AAEH,eAAO,MAAM,2BAA2B,wEAMtC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;KASpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;KAyBpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;KA+BxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;GAcvC,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { v } from 'convex/values';
|
|
2
|
+
import { mutation, query } from './_generated/server';
|
|
3
|
+
export const getAllVendorArticles = query({
|
|
4
|
+
args: {},
|
|
5
|
+
handler: async (ctx) => {
|
|
6
|
+
const vendorArticles = await ctx.db.query('vendor_articles').collect();
|
|
7
|
+
return vendorArticles;
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
export const createVendorArticle = mutation({
|
|
11
|
+
args: {
|
|
12
|
+
vendorId: v.id('suppliers'),
|
|
13
|
+
deviceId: v.id('devices'),
|
|
14
|
+
primoupVendorId: v.optional(v.string()),
|
|
15
|
+
primoupArticleId: v.optional(v.string()),
|
|
16
|
+
metadata: v.optional(v.any()),
|
|
17
|
+
},
|
|
18
|
+
handler: async (ctx, args) => {
|
|
19
|
+
const existing = await ctx.db
|
|
20
|
+
.query('vendor_articles')
|
|
21
|
+
.withIndex('by_vendorId_deviceId', (q) => q.eq('vendorId', args.vendorId).eq('deviceId', args.deviceId))
|
|
22
|
+
.first();
|
|
23
|
+
if (existing) {
|
|
24
|
+
await ctx.db.patch(existing._id, {
|
|
25
|
+
metadata: args.metadata,
|
|
26
|
+
});
|
|
27
|
+
return existing._id;
|
|
28
|
+
}
|
|
29
|
+
const vendorArticle = await ctx.db.insert('vendor_articles', {
|
|
30
|
+
vendorId: args.vendorId,
|
|
31
|
+
deviceId: args.deviceId,
|
|
32
|
+
primoupVendorId: args.primoupVendorId,
|
|
33
|
+
primoupArticleId: args.primoupArticleId,
|
|
34
|
+
metadata: args.metadata,
|
|
35
|
+
});
|
|
36
|
+
return vendorArticle;
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
export const getTotalVendorArticlesCount = query({
|
|
40
|
+
args: {},
|
|
41
|
+
handler: async (ctx) => {
|
|
42
|
+
const vendorArticles = await ctx.db.query('vendor_articles').collect();
|
|
43
|
+
return vendorArticles.length;
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
export const getVendorArticlesByVendor = query({
|
|
47
|
+
args: { vendorId: v.id('suppliers') },
|
|
48
|
+
handler: async (ctx, args) => {
|
|
49
|
+
const vendorArticles = await ctx.db
|
|
50
|
+
.query('vendor_articles')
|
|
51
|
+
.withIndex('by_vendorId', (q) => q.eq('vendorId', args.vendorId))
|
|
52
|
+
.collect();
|
|
53
|
+
return vendorArticles;
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
export const getVendorArticlesByDevice = query({
|
|
57
|
+
args: { deviceId: v.id('devices') },
|
|
58
|
+
handler: async (ctx, args) => {
|
|
59
|
+
const vendorArticles = await ctx.db
|
|
60
|
+
.query('vendor_articles')
|
|
61
|
+
.withIndex('by_deviceId', (q) => q.eq('deviceId', args.deviceId))
|
|
62
|
+
.collect();
|
|
63
|
+
const vendorArticlesWithSuppliers = await Promise.all(vendorArticles.map(async (va) => {
|
|
64
|
+
const supplier = await ctx.db.get(va.vendorId);
|
|
65
|
+
return {
|
|
66
|
+
...va,
|
|
67
|
+
supplier: supplier ? {
|
|
68
|
+
_id: supplier._id,
|
|
69
|
+
name: supplier.name,
|
|
70
|
+
contact_email: supplier.contact_email,
|
|
71
|
+
contact_phone: supplier.contact_phone,
|
|
72
|
+
} : null,
|
|
73
|
+
};
|
|
74
|
+
}));
|
|
75
|
+
return vendorArticlesWithSuppliers;
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
export const getSuppliersByDeviceArticleId = query({
|
|
79
|
+
args: { articleId: v.string() },
|
|
80
|
+
handler: async (ctx, args) => {
|
|
81
|
+
const vendorArticles = await ctx.db
|
|
82
|
+
.query('vendor_articles')
|
|
83
|
+
.filter((q) => q.eq(q.field('primoupArticleId'), args.articleId))
|
|
84
|
+
.collect();
|
|
85
|
+
const supplierIds = [...new Set(vendorArticles.map((va) => va.vendorId))];
|
|
86
|
+
const suppliers = await Promise.all(supplierIds.map(async (supplierId) => {
|
|
87
|
+
const supplier = await ctx.db.get(supplierId);
|
|
88
|
+
if (!supplier)
|
|
89
|
+
return null;
|
|
90
|
+
const va = vendorArticles.find((v) => v.vendorId === supplierId);
|
|
91
|
+
return {
|
|
92
|
+
_id: supplier._id,
|
|
93
|
+
name: supplier.name,
|
|
94
|
+
contact_email: supplier.contact_email,
|
|
95
|
+
contact_phone: supplier.contact_phone,
|
|
96
|
+
isPreferred: va?.metadata?.isPreferred || false,
|
|
97
|
+
vendorCode: va?.metadata?.vendorCode || null,
|
|
98
|
+
listPrice: va?.metadata?.listPrice || null,
|
|
99
|
+
netPrice: va?.metadata?.netPrice || null,
|
|
100
|
+
};
|
|
101
|
+
}));
|
|
102
|
+
return suppliers.filter((s) => s !== null);
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
export const deleteAllVendorArticlesBatch = mutation({
|
|
106
|
+
args: { limit: v.number() },
|
|
107
|
+
handler: async (ctx, args) => {
|
|
108
|
+
const vendorArticlesToDelete = await ctx.db
|
|
109
|
+
.query('vendor_articles')
|
|
110
|
+
.take(args.limit);
|
|
111
|
+
const deletePromises = vendorArticlesToDelete.map((va) => ctx.db.delete(va._id));
|
|
112
|
+
await Promise.all(deletePromises);
|
|
113
|
+
return { success: true, deletedCount: vendorArticlesToDelete.length };
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=vendorArticles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorArticles.js","sourceRoot":"","sources":["../../src/component/vendorArticles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC;IACxC,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACrB,MAAM,cAAc,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,OAAO,EAAE,CAAC;QACvE,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IAC1C,IAAI,EAAE;QACJ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC;QAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC;QACzB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACvC,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACxC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KAC9B;IACD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAA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