@nyrra/prismantix-oac-pharma 0.0.1

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 (48) hide show
  1. package/README.md +30 -0
  2. package/dist/index.d.mts +1 -0
  3. package/dist/index.mjs +1 -0
  4. package/dist/lib/prismantix/externalObjects.d.mts +3 -0
  5. package/dist/lib/prismantix/externalObjects.mjs +16 -0
  6. package/dist/lib/prismantix/index.d.mts +20 -0
  7. package/dist/lib/prismantix/index.mjs +29 -0
  8. package/dist/lib/prismantix/links.d.mts +27 -0
  9. package/dist/lib/prismantix/links.mjs +456 -0
  10. package/dist/lib/prismantix/objects/index.d.mts +2 -0
  11. package/dist/lib/prismantix/objects/index.mjs +2 -0
  12. package/dist/lib/prismantix/objects/masterData/Batch.d.mts +1 -0
  13. package/dist/lib/prismantix/objects/masterData/Batch.mjs +263 -0
  14. package/dist/lib/prismantix/objects/masterData/Equipment.d.mts +1 -0
  15. package/dist/lib/prismantix/objects/masterData/Equipment.mjs +126 -0
  16. package/dist/lib/prismantix/objects/masterData/Product.d.mts +1 -0
  17. package/dist/lib/prismantix/objects/masterData/Product.mjs +155 -0
  18. package/dist/lib/prismantix/objects/masterData/Site.d.mts +1 -0
  19. package/dist/lib/prismantix/objects/masterData/Site.mjs +182 -0
  20. package/dist/lib/prismantix/objects/masterData/Supplier.d.mts +1 -0
  21. package/dist/lib/prismantix/objects/masterData/Supplier.mjs +202 -0
  22. package/dist/lib/prismantix/objects/masterData/index.d.mts +6 -0
  23. package/dist/lib/prismantix/objects/masterData/index.mjs +17 -0
  24. package/dist/lib/prismantix/objects/quality/ActionItem.d.mts +1 -0
  25. package/dist/lib/prismantix/objects/quality/ActionItem.mjs +144 -0
  26. package/dist/lib/prismantix/objects/quality/Capa.d.mts +1 -0
  27. package/dist/lib/prismantix/objects/quality/Capa.mjs +286 -0
  28. package/dist/lib/prismantix/objects/quality/ChangeControl.d.mts +1 -0
  29. package/dist/lib/prismantix/objects/quality/ChangeControl.mjs +212 -0
  30. package/dist/lib/prismantix/objects/quality/ChangeControlApproval.d.mts +1 -0
  31. package/dist/lib/prismantix/objects/quality/ChangeControlApproval.mjs +122 -0
  32. package/dist/lib/prismantix/objects/quality/ChangeControlEffectiveness.d.mts +1 -0
  33. package/dist/lib/prismantix/objects/quality/ChangeControlEffectiveness.mjs +130 -0
  34. package/dist/lib/prismantix/objects/quality/ChangeControlImpact.d.mts +1 -0
  35. package/dist/lib/prismantix/objects/quality/ChangeControlImpact.mjs +150 -0
  36. package/dist/lib/prismantix/objects/quality/Complaint.d.mts +1 -0
  37. package/dist/lib/prismantix/objects/quality/Complaint.mjs +206 -0
  38. package/dist/lib/prismantix/objects/quality/Deviation.d.mts +1 -0
  39. package/dist/lib/prismantix/objects/quality/Deviation.mjs +212 -0
  40. package/dist/lib/prismantix/objects/quality/Investigation.d.mts +1 -0
  41. package/dist/lib/prismantix/objects/quality/Investigation.mjs +235 -0
  42. package/dist/lib/prismantix/objects/quality/RcaFactor.d.mts +1 -0
  43. package/dist/lib/prismantix/objects/quality/RcaFactor.mjs +89 -0
  44. package/dist/lib/prismantix/objects/quality/index.d.mts +11 -0
  45. package/dist/lib/prismantix/objects/quality/index.mjs +32 -0
  46. package/dist/lib/prismantix/valueTypes.d.mts +46 -0
  47. package/dist/lib/prismantix/valueTypes.mjs +586 -0
  48. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @nyrra/prismantix-oac-pharma
2
+
3
+ Authored Prismantix ontology-as-code definitions.
4
+
5
+ This package is the only authored source of truth for:
6
+
7
+ - OAC objects
8
+ - OAC links
9
+ - OAC value types
10
+ - field descriptions and property-level examples
11
+ - Prismantix-specific materialization metadata
12
+
13
+ It intentionally follows a Palantir-style OAC module layout:
14
+
15
+ - `src/lib/prismantix/index.mts`
16
+ - `src/lib/prismantix/links.mts`
17
+ - `src/lib/prismantix/valueTypes.mts`
18
+ - `src/lib/prismantix/externalObjects.mts`
19
+ - `src/lib/prismantix/objects/masterData/*.mts`
20
+ - `src/lib/prismantix/objects/quality/*.mts`
21
+
22
+ It does not own generated prompt config files. Prompt inputs and Convex schema artifacts are derived downstream from these authored definitions.
23
+
24
+ ## Build
25
+
26
+ Run `pnpm exec nx build prismantix-oac-pharma --skip-nx-cache`.
27
+
28
+ ## Test
29
+
30
+ Run `pnpm exec nx test prismantix-oac-pharma --skip-nx-cache`.
@@ -0,0 +1 @@
1
+ export * from "./lib/prismantix/index.mjs";
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "./lib/prismantix/index.mjs";
@@ -0,0 +1,3 @@
1
+ export declare const AppUser: import("@nyrra/maker").ExternalObjectDefinition;
2
+ export declare const Client: import("@nyrra/maker").ExternalObjectDefinition;
3
+ export declare const PRISMANTIX_EXTERNAL_OBJECTS: readonly [import("@nyrra/maker").ExternalObjectDefinition, import("@nyrra/maker").ExternalObjectDefinition];
@@ -0,0 +1,16 @@
1
+ import { defineExternalObject } from "@nyrra/maker";
2
+ export const AppUser = defineExternalObject({
3
+ apiName: "AppUser",
4
+ description: "Application user identity maintained outside the ontology component.",
5
+ displayName: "App User",
6
+ pluralDisplayName: "App Users",
7
+ tableName: "datastudio_appUsers",
8
+ });
9
+ export const Client = defineExternalObject({
10
+ apiName: "Client",
11
+ description: "Tenant or client boundary maintained outside the ontology component.",
12
+ displayName: "Client",
13
+ pluralDisplayName: "Clients",
14
+ tableName: "datastudio_clients",
15
+ });
16
+ export const PRISMANTIX_EXTERNAL_OBJECTS = [AppUser, Client];
@@ -0,0 +1,20 @@
1
+ import type { ExternalObjectDefinition, PrismantixLinkDefinition, PrismantixObjectDefinition, PrismantixValueTypeDefinition } from "@nyrra/maker";
2
+ export * from "./externalObjects.mjs";
3
+ export * from "./links.mjs";
4
+ export * from "./objects/index.mjs";
5
+ export * from "./valueTypes.mjs";
6
+ export declare const PRISMANTIX_OAC_OBJECTS: readonly PrismantixObjectDefinition[];
7
+ export declare const PRISMANTIX_OAC_OBJECTS_BY_API_NAME: Record<string, PrismantixObjectDefinition>;
8
+ export declare const PRISMANTIX_OAC_OBJECTS_BY_TABLE_NAME: Record<string, PrismantixObjectDefinition>;
9
+ export declare const PRISMANTIX_OAC_VALUE_TYPES_BY_API_NAME: Record<string, PrismantixValueTypeDefinition>;
10
+ export declare const PRISMANTIX_EXTERNAL_OBJECTS_BY_TABLE_NAME: Record<string, ExternalObjectDefinition>;
11
+ export declare const PRISMANTIX_OAC_DEFINITION: {
12
+ readonly externalObjects: readonly ExternalObjectDefinition[];
13
+ readonly links: readonly PrismantixLinkDefinition[];
14
+ readonly objects: readonly PrismantixObjectDefinition[];
15
+ readonly objectsByApiName: Record<string, PrismantixObjectDefinition>;
16
+ readonly objectsByTableName: Record<string, PrismantixObjectDefinition>;
17
+ readonly valueTypes: readonly PrismantixValueTypeDefinition[];
18
+ readonly valueTypesByApiName: Record<string, PrismantixValueTypeDefinition>;
19
+ };
20
+ export type PrismantixOacDefinition = typeof PRISMANTIX_OAC_DEFINITION;
@@ -0,0 +1,29 @@
1
+ import { PRISMANTIX_EXTERNAL_OBJECTS } from "./externalObjects.mjs";
2
+ import { PRISMANTIX_OAC_LINKS } from "./links.mjs";
3
+ import { MASTER_DATA_OAC_OBJECTS } from "./objects/masterData/index.mjs";
4
+ import { PHARMA_QUALITY_OAC_OBJECTS } from "./objects/quality/index.mjs";
5
+ import { PRISMANTIX_OAC_VALUE_TYPES } from "./valueTypes.mjs";
6
+ export * from "./externalObjects.mjs";
7
+ export * from "./links.mjs";
8
+ export * from "./objects/index.mjs";
9
+ export * from "./valueTypes.mjs";
10
+ export const PRISMANTIX_OAC_OBJECTS = [
11
+ ...MASTER_DATA_OAC_OBJECTS,
12
+ ...PHARMA_QUALITY_OAC_OBJECTS,
13
+ ];
14
+ export const PRISMANTIX_OAC_OBJECTS_BY_API_NAME = Object.fromEntries(PRISMANTIX_OAC_OBJECTS.map((object) => [object.apiName, object]));
15
+ export const PRISMANTIX_OAC_OBJECTS_BY_TABLE_NAME = Object.fromEntries(PRISMANTIX_OAC_OBJECTS.map((object) => [
16
+ object.prismantix.convex.tableName,
17
+ object,
18
+ ]));
19
+ export const PRISMANTIX_OAC_VALUE_TYPES_BY_API_NAME = Object.fromEntries(PRISMANTIX_OAC_VALUE_TYPES.map((valueType) => [valueType.apiName, valueType]));
20
+ export const PRISMANTIX_EXTERNAL_OBJECTS_BY_TABLE_NAME = Object.fromEntries(PRISMANTIX_EXTERNAL_OBJECTS.map((object) => [object.tableName, object]));
21
+ export const PRISMANTIX_OAC_DEFINITION = {
22
+ externalObjects: PRISMANTIX_EXTERNAL_OBJECTS,
23
+ links: PRISMANTIX_OAC_LINKS,
24
+ objects: PRISMANTIX_OAC_OBJECTS,
25
+ objectsByApiName: PRISMANTIX_OAC_OBJECTS_BY_API_NAME,
26
+ objectsByTableName: PRISMANTIX_OAC_OBJECTS_BY_TABLE_NAME,
27
+ valueTypes: PRISMANTIX_OAC_VALUE_TYPES,
28
+ valueTypesByApiName: PRISMANTIX_OAC_VALUE_TYPES_BY_API_NAME,
29
+ };
@@ -0,0 +1,27 @@
1
+ import { type PrismantixLinkDefinition } from "@nyrra/maker";
2
+ export declare const SiteEquipmentLink: import("@nyrra/maker").OneToManyLinkDefinition;
3
+ export declare const ProductBatchLink: import("@nyrra/maker").OneToManyLinkDefinition;
4
+ export declare const SiteBatchLink: import("@nyrra/maker").OneToManyLinkDefinition;
5
+ export declare const SupplierBatchLink: import("@nyrra/maker").ManyToManyLinkDefinition;
6
+ export declare const BatchParentBatchLink: import("@nyrra/maker").ManyToManyLinkDefinition;
7
+ export declare const BatchDeviationLink: import("@nyrra/maker").OneToManyLinkDefinition;
8
+ export declare const SiteDeviationLink: import("@nyrra/maker").OneToManyLinkDefinition;
9
+ export declare const ProductComplaintLink: import("@nyrra/maker").OneToManyLinkDefinition;
10
+ export declare const ComplaintBatchLink: import("@nyrra/maker").ManyToManyLinkDefinition;
11
+ export declare const InvestigationRcaFactorLink: import("@nyrra/maker").OneToManyLinkDefinition;
12
+ export declare const InvestigationCapaLink: import("@nyrra/maker").OneToManyLinkDefinition;
13
+ export declare const ChangeControlCapaLink: import("@nyrra/maker").OneToManyLinkDefinition;
14
+ export declare const ChangeControlLinkedCapaLink: import("@nyrra/maker").OneToManyLinkDefinition;
15
+ export declare const CapaActionItemLink: import("@nyrra/maker").OneToManyLinkDefinition;
16
+ export declare const ChangeControlImpactLink: import("@nyrra/maker").OneToManyLinkDefinition;
17
+ export declare const ProductChangeControlImpactLink: import("@nyrra/maker").OneToManyLinkDefinition;
18
+ export declare const EquipmentChangeControlImpactLink: import("@nyrra/maker").OneToManyLinkDefinition;
19
+ export declare const SupplierChangeControlImpactLink: import("@nyrra/maker").OneToManyLinkDefinition;
20
+ export declare const ChangeControlApprovalLink: import("@nyrra/maker").OneToManyLinkDefinition;
21
+ export declare const ChangeControlEffectivenessLink: import("@nyrra/maker").OneToManyLinkDefinition;
22
+ export declare const AppUserActionItemAssignmentLink: import("@nyrra/maker").OneToManyLinkDefinition;
23
+ export declare const AppUserChangeControlRequesterLink: import("@nyrra/maker").OneToManyLinkDefinition;
24
+ export declare const AppUserChangeControlOwnerLink: import("@nyrra/maker").OneToManyLinkDefinition;
25
+ export declare const AppUserChangeControlApprovalLink: import("@nyrra/maker").OneToManyLinkDefinition;
26
+ export declare const AppUserChangeControlEffectivenessVerifierLink: import("@nyrra/maker").OneToManyLinkDefinition;
27
+ export declare const PRISMANTIX_OAC_LINKS: readonly PrismantixLinkDefinition[];
@@ -0,0 +1,456 @@
1
+ import { defineLink } from "@nyrra/maker";
2
+ import { AppUser } from "./externalObjects.mjs";
3
+ import { ActionItem, Batch, Capa, ChangeControl, ChangeControlApproval, ChangeControlEffectiveness, ChangeControlImpact, Complaint, Deviation, Equipment, Investigation, Product, RcaFactor, Site, Supplier, } from "./objects/index.mjs";
4
+ export const SiteEquipmentLink = defineLink({
5
+ apiName: "site-equipment",
6
+ description: "Equipment installed or maintained at a site.",
7
+ manyForeignKeyProperty: "siteId",
8
+ one: {
9
+ apiName: "site",
10
+ displayName: "Site",
11
+ object: Site,
12
+ pluralDisplayName: "Sites",
13
+ },
14
+ toMany: {
15
+ apiName: "equipment",
16
+ displayName: "Equipment",
17
+ object: Equipment,
18
+ pluralDisplayName: "Equipment",
19
+ },
20
+ });
21
+ export const ProductBatchLink = defineLink({
22
+ apiName: "product-batch",
23
+ description: "Manufacturing batches produced for a product.",
24
+ manyForeignKeyProperty: "productId",
25
+ one: {
26
+ apiName: "product",
27
+ displayName: "Product",
28
+ object: Product,
29
+ pluralDisplayName: "Products",
30
+ },
31
+ toMany: {
32
+ apiName: "batches",
33
+ displayName: "Batch",
34
+ object: Batch,
35
+ pluralDisplayName: "Batches",
36
+ },
37
+ });
38
+ export const SiteBatchLink = defineLink({
39
+ apiName: "site-batch",
40
+ description: "Manufacturing batches executed at a site.",
41
+ manyForeignKeyProperty: "siteId",
42
+ one: {
43
+ apiName: "site",
44
+ displayName: "Site",
45
+ object: Site,
46
+ pluralDisplayName: "Sites",
47
+ },
48
+ toMany: {
49
+ apiName: "batches",
50
+ displayName: "Batch",
51
+ object: Batch,
52
+ pluralDisplayName: "Batches",
53
+ },
54
+ });
55
+ export const SupplierBatchLink = defineLink({
56
+ apiName: "supplier-batch",
57
+ description: "Suppliers associated with a batch.",
58
+ many: {
59
+ apiName: "suppliers",
60
+ displayName: "Supplier",
61
+ object: Supplier,
62
+ pluralDisplayName: "Suppliers",
63
+ },
64
+ manyForeignKeyProperty: "supplierIds",
65
+ toMany: {
66
+ apiName: "batches",
67
+ displayName: "Batch",
68
+ object: Batch,
69
+ pluralDisplayName: "Batches",
70
+ },
71
+ });
72
+ export const BatchParentBatchLink = defineLink({
73
+ apiName: "batch-parent-batch",
74
+ description: "Explicit batch genealogy between parent and child batches.",
75
+ many: {
76
+ apiName: "parentBatch",
77
+ displayName: "Parent Batch",
78
+ object: Batch,
79
+ pluralDisplayName: "Parent Batches",
80
+ },
81
+ manyForeignKeyProperty: "parentBatchIds",
82
+ toMany: {
83
+ apiName: "childBatch",
84
+ displayName: "Child Batch",
85
+ object: Batch,
86
+ pluralDisplayName: "Child Batches",
87
+ },
88
+ });
89
+ export const BatchDeviationLink = defineLink({
90
+ apiName: "batch-deviation",
91
+ description: "Deviations linked to a batch.",
92
+ manyForeignKeyProperty: "batchId",
93
+ one: {
94
+ apiName: "batch",
95
+ displayName: "Batch",
96
+ object: Batch,
97
+ pluralDisplayName: "Batches",
98
+ },
99
+ toMany: {
100
+ apiName: "deviations",
101
+ displayName: "Deviation",
102
+ object: Deviation,
103
+ pluralDisplayName: "Deviations",
104
+ },
105
+ });
106
+ export const SiteDeviationLink = defineLink({
107
+ apiName: "site-deviation",
108
+ description: "Deviations linked directly to a site.",
109
+ manyForeignKeyProperty: "siteId",
110
+ one: {
111
+ apiName: "site",
112
+ displayName: "Site",
113
+ object: Site,
114
+ pluralDisplayName: "Sites",
115
+ },
116
+ toMany: {
117
+ apiName: "deviations",
118
+ displayName: "Deviation",
119
+ object: Deviation,
120
+ pluralDisplayName: "Deviations",
121
+ },
122
+ });
123
+ export const ProductComplaintLink = defineLink({
124
+ apiName: "product-complaint",
125
+ description: "Product complaints recorded against a product.",
126
+ manyForeignKeyProperty: "productId",
127
+ one: {
128
+ apiName: "product",
129
+ displayName: "Product",
130
+ object: Product,
131
+ pluralDisplayName: "Products",
132
+ },
133
+ toMany: {
134
+ apiName: "complaints",
135
+ displayName: "Complaint",
136
+ object: Complaint,
137
+ pluralDisplayName: "Complaints",
138
+ },
139
+ });
140
+ export const ComplaintBatchLink = defineLink({
141
+ apiName: "complaint-batch",
142
+ description: "Batches referenced by a complaint.",
143
+ many: {
144
+ apiName: "linkedBatches",
145
+ displayName: "Linked Batch",
146
+ object: Batch,
147
+ pluralDisplayName: "Linked Batches",
148
+ },
149
+ toMany: {
150
+ apiName: "complaints",
151
+ displayName: "Complaint",
152
+ object: Complaint,
153
+ pluralDisplayName: "Complaints",
154
+ },
155
+ toManyForeignKeyProperty: "linkedBatchIds",
156
+ });
157
+ export const InvestigationRcaFactorLink = defineLink({
158
+ apiName: "investigation-rca-factor",
159
+ description: "Root-cause factors found during an investigation.",
160
+ manyForeignKeyProperty: "investigationId",
161
+ one: {
162
+ apiName: "investigation",
163
+ displayName: "Investigation",
164
+ object: Investigation,
165
+ pluralDisplayName: "Investigations",
166
+ },
167
+ toMany: {
168
+ apiName: "rcaFactors",
169
+ displayName: "RCA Factor",
170
+ object: RcaFactor,
171
+ pluralDisplayName: "RCA Factors",
172
+ },
173
+ });
174
+ export const InvestigationCapaLink = defineLink({
175
+ apiName: "investigation-capa",
176
+ description: "CAPAs that originate from an investigation.",
177
+ manyForeignKeyProperty: "investigationId",
178
+ one: {
179
+ apiName: "investigation",
180
+ displayName: "Investigation",
181
+ object: Investigation,
182
+ pluralDisplayName: "Investigations",
183
+ },
184
+ toMany: {
185
+ apiName: "capas",
186
+ displayName: "CAPA",
187
+ object: Capa,
188
+ pluralDisplayName: "CAPAs",
189
+ },
190
+ });
191
+ export const ChangeControlCapaLink = defineLink({
192
+ apiName: "change-control-capa",
193
+ description: "CAPAs that reference a change control as their source.",
194
+ manyForeignKeyProperty: "changeControlId",
195
+ one: {
196
+ apiName: "changeControl",
197
+ displayName: "Change Control",
198
+ object: ChangeControl,
199
+ pluralDisplayName: "Change Controls",
200
+ },
201
+ toMany: {
202
+ apiName: "capas",
203
+ displayName: "CAPA",
204
+ object: Capa,
205
+ pluralDisplayName: "CAPAs",
206
+ },
207
+ });
208
+ export const ChangeControlLinkedCapaLink = defineLink({
209
+ apiName: "change-control-linked-capa",
210
+ cardinality: "OneToOne",
211
+ description: "Change controls with a directly linked CAPA.",
212
+ manyForeignKeyProperty: "linkedCapaId",
213
+ one: {
214
+ apiName: "linkedCapa",
215
+ displayName: "Linked CAPA",
216
+ object: Capa,
217
+ pluralDisplayName: "Linked CAPAs",
218
+ },
219
+ toMany: {
220
+ apiName: "changeControls",
221
+ displayName: "Change Control",
222
+ object: ChangeControl,
223
+ pluralDisplayName: "Change Controls",
224
+ },
225
+ });
226
+ export const CapaActionItemLink = defineLink({
227
+ apiName: "capa-action-item",
228
+ description: "Action items created to implement a CAPA.",
229
+ manyForeignKeyProperty: "capaId",
230
+ one: {
231
+ apiName: "capa",
232
+ displayName: "CAPA",
233
+ object: Capa,
234
+ pluralDisplayName: "CAPAs",
235
+ },
236
+ toMany: {
237
+ apiName: "actionItems",
238
+ displayName: "Action Item",
239
+ object: ActionItem,
240
+ pluralDisplayName: "Action Items",
241
+ },
242
+ });
243
+ export const ChangeControlImpactLink = defineLink({
244
+ apiName: "change-control-impact",
245
+ description: "Impact assessments captured for a change control.",
246
+ manyForeignKeyProperty: "changeControlId",
247
+ one: {
248
+ apiName: "changeControl",
249
+ displayName: "Change Control",
250
+ object: ChangeControl,
251
+ pluralDisplayName: "Change Controls",
252
+ },
253
+ toMany: {
254
+ apiName: "impacts",
255
+ displayName: "Change Control Impact",
256
+ object: ChangeControlImpact,
257
+ pluralDisplayName: "Change Control Impacts",
258
+ },
259
+ });
260
+ export const ProductChangeControlImpactLink = defineLink({
261
+ apiName: "product-change-control-impact",
262
+ description: "Change-control impacts that affect a product.",
263
+ manyForeignKeyProperty: "productId",
264
+ one: {
265
+ apiName: "product",
266
+ displayName: "Product",
267
+ object: Product,
268
+ pluralDisplayName: "Products",
269
+ },
270
+ toMany: {
271
+ apiName: "impacts",
272
+ displayName: "Change Control Impact",
273
+ object: ChangeControlImpact,
274
+ pluralDisplayName: "Change Control Impacts",
275
+ },
276
+ });
277
+ export const EquipmentChangeControlImpactLink = defineLink({
278
+ apiName: "equipment-change-control-impact",
279
+ description: "Change-control impacts that affect equipment.",
280
+ manyForeignKeyProperty: "equipmentId",
281
+ one: {
282
+ apiName: "equipment",
283
+ displayName: "Equipment",
284
+ object: Equipment,
285
+ pluralDisplayName: "Equipment",
286
+ },
287
+ toMany: {
288
+ apiName: "impacts",
289
+ displayName: "Change Control Impact",
290
+ object: ChangeControlImpact,
291
+ pluralDisplayName: "Change Control Impacts",
292
+ },
293
+ });
294
+ export const SupplierChangeControlImpactLink = defineLink({
295
+ apiName: "supplier-change-control-impact",
296
+ description: "Change-control impacts that affect suppliers.",
297
+ manyForeignKeyProperty: "supplierId",
298
+ one: {
299
+ apiName: "supplier",
300
+ displayName: "Supplier",
301
+ object: Supplier,
302
+ pluralDisplayName: "Suppliers",
303
+ },
304
+ toMany: {
305
+ apiName: "impacts",
306
+ displayName: "Change Control Impact",
307
+ object: ChangeControlImpact,
308
+ pluralDisplayName: "Change Control Impacts",
309
+ },
310
+ });
311
+ export const ChangeControlApprovalLink = defineLink({
312
+ apiName: "change-control-approval",
313
+ description: "Approval decisions recorded for a change control.",
314
+ manyForeignKeyProperty: "changeControlId",
315
+ one: {
316
+ apiName: "changeControl",
317
+ displayName: "Change Control",
318
+ object: ChangeControl,
319
+ pluralDisplayName: "Change Controls",
320
+ },
321
+ toMany: {
322
+ apiName: "approvals",
323
+ displayName: "Change Control Approval",
324
+ object: ChangeControlApproval,
325
+ pluralDisplayName: "Change Control Approvals",
326
+ },
327
+ });
328
+ export const ChangeControlEffectivenessLink = defineLink({
329
+ apiName: "change-control-effectiveness",
330
+ description: "Effectiveness checks recorded for a change control.",
331
+ manyForeignKeyProperty: "changeControlId",
332
+ one: {
333
+ apiName: "changeControl",
334
+ displayName: "Change Control",
335
+ object: ChangeControl,
336
+ pluralDisplayName: "Change Controls",
337
+ },
338
+ toMany: {
339
+ apiName: "effectivenessChecks",
340
+ displayName: "Change Control Effectiveness",
341
+ object: ChangeControlEffectiveness,
342
+ pluralDisplayName: "Change Control Effectiveness Checks",
343
+ },
344
+ });
345
+ export const AppUserActionItemAssignmentLink = defineLink({
346
+ apiName: "app-user-action-item-assignment",
347
+ description: "Action items assigned to an application user.",
348
+ manyForeignKeyProperty: "assigneeUserId",
349
+ one: {
350
+ apiName: "assignee",
351
+ displayName: "Assignee",
352
+ object: AppUser,
353
+ pluralDisplayName: "Assignees",
354
+ },
355
+ toMany: {
356
+ apiName: "actionItems",
357
+ displayName: "Action Item",
358
+ object: ActionItem,
359
+ pluralDisplayName: "Action Items",
360
+ },
361
+ });
362
+ export const AppUserChangeControlRequesterLink = defineLink({
363
+ apiName: "app-user-change-control-requester",
364
+ description: "Change controls requested by an application user.",
365
+ manyForeignKeyProperty: "requesterUserId",
366
+ one: {
367
+ apiName: "requester",
368
+ displayName: "Requester",
369
+ object: AppUser,
370
+ pluralDisplayName: "Requesters",
371
+ },
372
+ toMany: {
373
+ apiName: "requestedChangeControls",
374
+ displayName: "Requested Change Control",
375
+ object: ChangeControl,
376
+ pluralDisplayName: "Requested Change Controls",
377
+ },
378
+ });
379
+ export const AppUserChangeControlOwnerLink = defineLink({
380
+ apiName: "app-user-change-control-owner",
381
+ description: "Change controls owned by an application user.",
382
+ manyForeignKeyProperty: "ownerUserId",
383
+ one: {
384
+ apiName: "owner",
385
+ displayName: "Owner",
386
+ object: AppUser,
387
+ pluralDisplayName: "Owners",
388
+ },
389
+ toMany: {
390
+ apiName: "ownedChangeControls",
391
+ displayName: "Owned Change Control",
392
+ object: ChangeControl,
393
+ pluralDisplayName: "Owned Change Controls",
394
+ },
395
+ });
396
+ export const AppUserChangeControlApprovalLink = defineLink({
397
+ apiName: "app-user-change-control-approval",
398
+ description: "Approvals performed by an application user.",
399
+ manyForeignKeyProperty: "approverUserId",
400
+ one: {
401
+ apiName: "approver",
402
+ displayName: "Approver",
403
+ object: AppUser,
404
+ pluralDisplayName: "Approvers",
405
+ },
406
+ toMany: {
407
+ apiName: "changeControlApprovals",
408
+ displayName: "Change Control Approval",
409
+ object: ChangeControlApproval,
410
+ pluralDisplayName: "Change Control Approvals",
411
+ },
412
+ });
413
+ export const AppUserChangeControlEffectivenessVerifierLink = defineLink({
414
+ apiName: "app-user-change-control-effectiveness-verifier",
415
+ description: "Effectiveness checks verified by an application user.",
416
+ manyForeignKeyProperty: "verifiedByUserId",
417
+ one: {
418
+ apiName: "verifier",
419
+ displayName: "Verifier",
420
+ object: AppUser,
421
+ pluralDisplayName: "Verifiers",
422
+ },
423
+ toMany: {
424
+ apiName: "effectivenessChecks",
425
+ displayName: "Change Control Effectiveness",
426
+ object: ChangeControlEffectiveness,
427
+ pluralDisplayName: "Change Control Effectiveness Checks",
428
+ },
429
+ });
430
+ export const PRISMANTIX_OAC_LINKS = [
431
+ SiteEquipmentLink,
432
+ ProductBatchLink,
433
+ SiteBatchLink,
434
+ SupplierBatchLink,
435
+ BatchParentBatchLink,
436
+ BatchDeviationLink,
437
+ SiteDeviationLink,
438
+ ProductComplaintLink,
439
+ ComplaintBatchLink,
440
+ InvestigationRcaFactorLink,
441
+ InvestigationCapaLink,
442
+ ChangeControlCapaLink,
443
+ ChangeControlLinkedCapaLink,
444
+ CapaActionItemLink,
445
+ ChangeControlImpactLink,
446
+ ProductChangeControlImpactLink,
447
+ EquipmentChangeControlImpactLink,
448
+ SupplierChangeControlImpactLink,
449
+ ChangeControlApprovalLink,
450
+ ChangeControlEffectivenessLink,
451
+ AppUserActionItemAssignmentLink,
452
+ AppUserChangeControlRequesterLink,
453
+ AppUserChangeControlOwnerLink,
454
+ AppUserChangeControlApprovalLink,
455
+ AppUserChangeControlEffectivenessVerifierLink,
456
+ ];
@@ -0,0 +1,2 @@
1
+ export * from "./masterData/index.mjs";
2
+ export * from "./quality/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./masterData/index.mjs";
2
+ export * from "./quality/index.mjs";
@@ -0,0 +1 @@
1
+ export declare const Batch: import("@nyrra/maker").PrismantixObjectDefinition;