@actschurch/ccms-sdk 0.0.15 → 0.0.16

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 (216) hide show
  1. package/dist/auth/AuthManager.d.ts +11 -0
  2. package/dist/auth/AuthManager.d.ts.map +1 -1
  3. package/dist/auth/AuthManager.js +88 -7
  4. package/dist/auth/AuthManager.js.map +1 -1
  5. package/dist/auth/adapters/context.d.ts +2 -1
  6. package/dist/auth/adapters/context.d.ts.map +1 -1
  7. package/dist/auth/adapters/context.js +2 -1
  8. package/dist/auth/adapters/context.js.map +1 -1
  9. package/dist/auth/adapters/redux.d.ts +1 -0
  10. package/dist/auth/adapters/redux.d.ts.map +1 -1
  11. package/dist/auth/adapters/redux.js +2 -0
  12. package/dist/auth/adapters/redux.js.map +1 -1
  13. package/dist/auth/types.d.ts +8 -0
  14. package/dist/auth/types.d.ts.map +1 -1
  15. package/dist/auth/types.js +6 -0
  16. package/dist/auth/types.js.map +1 -1
  17. package/dist/models/integrations/sageone/Companies/Company.d.ts +5 -5
  18. package/dist/models/integrations/sageone/Companies/CompanyEntityType.d.ts +2 -2
  19. package/dist/models/integrations/sageone/Companies/CompanyNote.d.ts +5 -5
  20. package/dist/models/integrations/sageone/Items/Account.d.ts +15 -15
  21. package/dist/models/integrations/sageone/Items/AccountCategory.d.ts +6 -6
  22. package/dist/models/integrations/sageone/Items/AdditionalItemPrice.d.ts +5 -5
  23. package/dist/models/integrations/sageone/Items/Item.d.ts +56 -56
  24. package/dist/models/integrations/sageone/Items/ItemAdjustment.d.ts +8 -8
  25. package/dist/models/integrations/sageone/Items/ItemAttachment.d.ts +4 -4
  26. package/dist/models/integrations/sageone/Items/ItemCategory.d.ts +4 -4
  27. package/dist/models/integrations/sageone/Items/ItemNote.d.ts +11 -11
  28. package/dist/models/integrations/sageone/Items/ItemReportGroup.d.ts +7 -7
  29. package/dist/models/integrations/sageone/Items/TaxType.d.ts +11 -11
  30. package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.d.ts +4 -4
  31. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.d.ts +9 -9
  32. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.d.ts +5 -5
  33. package/dist/models/integrations/sageone/SageOneApiConfig.d.ts +8 -8
  34. package/dist/models/integrations/sageone/SageOneResponse.d.ts +3 -3
  35. package/dist/models/integrations/sageone/Suppliers/Supplier.d.ts +46 -46
  36. package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.d.ts +11 -11
  37. package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.d.ts +10 -10
  38. package/dist/models/integrations/sageone/Suppliers/SupplierCategory.d.ts +4 -4
  39. package/dist/models/integrations/sageone/Suppliers/SupplierNote.d.ts +11 -11
  40. package/dist/models/procurement/Invoice.d.ts +1 -0
  41. package/dist/models/procurement/Invoice.d.ts.map +1 -1
  42. package/dist/models/procurement/InvoiceLine.d.ts +1 -0
  43. package/dist/models/procurement/InvoiceLine.d.ts.map +1 -1
  44. package/dist/models/procurement/Quotation.d.ts +1 -0
  45. package/dist/models/procurement/Quotation.d.ts.map +1 -1
  46. package/dist/models/procurement/RequestPurchaseOrder.d.ts +5 -2
  47. package/dist/models/procurement/RequestPurchaseOrder.d.ts.map +1 -1
  48. package/dist/models/procurements/AuditLog.d.ts +9 -9
  49. package/dist/models/procurements/CacheKeys/CurrencyCacheKeys.d.ts +11 -0
  50. package/dist/models/procurements/CacheKeys/CurrencyCacheKeys.d.ts.map +1 -0
  51. package/dist/models/procurements/CacheKeys/CurrencyCacheKeys.js +10 -0
  52. package/dist/models/procurements/CacheKeys/CurrencyCacheKeys.js.map +1 -0
  53. package/dist/models/procurements/CacheKeys/QuotationLineApprovalCacheKeys.d.ts +14 -0
  54. package/dist/models/procurements/CacheKeys/QuotationLineApprovalCacheKeys.d.ts.map +1 -0
  55. package/dist/models/procurements/CacheKeys/QuotationLineApprovalCacheKeys.js +13 -0
  56. package/dist/models/procurements/CacheKeys/QuotationLineApprovalCacheKeys.js.map +1 -0
  57. package/dist/models/procurements/CacheKeys/index.d.ts +2 -0
  58. package/dist/models/procurements/CacheKeys/index.d.ts.map +1 -1
  59. package/dist/models/procurements/CacheKeys/index.js +2 -0
  60. package/dist/models/procurements/CacheKeys/index.js.map +1 -1
  61. package/dist/models/procurements/Currency.d.ts +13 -0
  62. package/dist/models/procurements/Currency.d.ts.map +1 -0
  63. package/dist/models/procurements/Currency.js +2 -0
  64. package/dist/models/procurements/Currency.js.map +1 -0
  65. package/dist/models/procurements/Invoice.d.ts +17 -13
  66. package/dist/models/procurements/Invoice.d.ts.map +1 -1
  67. package/dist/models/procurements/InvoiceLine.d.ts +14 -10
  68. package/dist/models/procurements/InvoiceLine.d.ts.map +1 -1
  69. package/dist/models/procurements/InvoiceStatus.d.ts +7 -7
  70. package/dist/models/procurements/ModelView/AuditLogViewModel.d.ts +23 -23
  71. package/dist/models/procurements/ModelView/InvoiceViewModel.d.ts +30 -30
  72. package/dist/models/procurements/ModelView/NotificationViewModel.d.ts +19 -19
  73. package/dist/models/procurements/ModelView/ProcurementDashboardStats.d.ts +27 -0
  74. package/dist/models/procurements/ModelView/ProcurementDashboardStats.d.ts.map +1 -0
  75. package/dist/models/procurements/ModelView/ProcurementDashboardStats.js +2 -0
  76. package/dist/models/procurements/ModelView/ProcurementDashboardStats.js.map +1 -0
  77. package/dist/models/procurements/ModelView/ProcurementRoleAssignmentViewModel.d.ts +23 -23
  78. package/dist/models/procurements/ModelView/PurchaseRequestViewModel.d.ts +72 -72
  79. package/dist/models/procurements/ModelView/QuotationViewModel.d.ts +37 -37
  80. package/dist/models/procurements/ModelView/RequestApprovalModelView.d.ts +17 -17
  81. package/dist/models/procurements/ModelView/RequestAttachmentViewModel.d.ts +19 -19
  82. package/dist/models/procurements/ModelView/RequestCommentCreateModel.d.ts +4 -4
  83. package/dist/models/procurements/ModelView/RequestCommentFilterModel.d.ts +5 -5
  84. package/dist/models/procurements/ModelView/RequestCommentView.d.ts +11 -11
  85. package/dist/models/procurements/ModelView/RequestStatusViewModel.d.ts +11 -11
  86. package/dist/models/procurements/ModelView/index.d.ts +1 -0
  87. package/dist/models/procurements/ModelView/index.d.ts.map +1 -1
  88. package/dist/models/procurements/ModelView/index.js +1 -0
  89. package/dist/models/procurements/ModelView/index.js.map +1 -1
  90. package/dist/models/procurements/Notification.d.ts +10 -10
  91. package/dist/models/procurements/ProcurementNotificationQueue.d.ts +11 -11
  92. package/dist/models/procurements/ProcurementRoleAssignment.d.ts +7 -7
  93. package/dist/models/procurements/ProcurementRoleType.d.ts +7 -7
  94. package/dist/models/procurements/PurchaseRequest.d.ts +19 -19
  95. package/dist/models/procurements/Quotation.d.ts +17 -13
  96. package/dist/models/procurements/Quotation.d.ts.map +1 -1
  97. package/dist/models/procurements/QuotationLine.d.ts +22 -10
  98. package/dist/models/procurements/QuotationLine.d.ts.map +1 -1
  99. package/dist/models/procurements/QuotationLineApproval.d.ts +19 -0
  100. package/dist/models/procurements/QuotationLineApproval.d.ts.map +1 -0
  101. package/dist/models/procurements/QuotationLineApproval.js +2 -0
  102. package/dist/models/procurements/QuotationLineApproval.js.map +1 -0
  103. package/dist/models/procurements/QuotationStatus.d.ts +7 -7
  104. package/dist/models/procurements/RequestApproval.d.ts +8 -8
  105. package/dist/models/procurements/RequestApprovalStatus.d.ts +7 -7
  106. package/dist/models/procurements/RequestAttachment.d.ts +9 -9
  107. package/dist/models/procurements/RequestComment.d.ts +7 -7
  108. package/dist/models/procurements/RequestPurchaseOrder.d.ts +17 -5
  109. package/dist/models/procurements/RequestPurchaseOrder.d.ts.map +1 -1
  110. package/dist/models/procurements/RequestStage.d.ts +7 -7
  111. package/dist/models/procurements/RequestStatus.d.ts +8 -8
  112. package/dist/models/procurements/RequestType.d.ts +7 -7
  113. package/dist/models/procurements/index.d.ts +2 -0
  114. package/dist/models/procurements/index.d.ts.map +1 -1
  115. package/dist/models/procurements/index.js +2 -0
  116. package/dist/models/procurements/index.js.map +1 -1
  117. package/dist/models/suppliers/CacheKeys/IndustryCacheKeys.d.ts +3 -3
  118. package/dist/models/suppliers/CacheKeys/IndustryCacheKeys.js +3 -3
  119. package/dist/models/suppliers/CacheKeys/SubscriptionStatusCacheKeys.d.ts +3 -3
  120. package/dist/models/suppliers/CacheKeys/SubscriptionStatusCacheKeys.js +3 -3
  121. package/dist/models/suppliers/CacheKeys/SubscriptionTypeCacheKeys.d.ts +3 -3
  122. package/dist/models/suppliers/CacheKeys/SubscriptionTypeCacheKeys.js +3 -3
  123. package/dist/models/suppliers/CacheKeys/SubscriptionUserCacheKeys.d.ts +12 -0
  124. package/dist/models/suppliers/CacheKeys/SubscriptionUserCacheKeys.d.ts.map +1 -0
  125. package/dist/models/suppliers/CacheKeys/SubscriptionUserCacheKeys.js +11 -0
  126. package/dist/models/suppliers/CacheKeys/SubscriptionUserCacheKeys.js.map +1 -0
  127. package/dist/models/suppliers/CacheKeys/SupplierAccountCacheKeys.d.ts +3 -3
  128. package/dist/models/suppliers/CacheKeys/SupplierAccountCacheKeys.js +3 -3
  129. package/dist/models/suppliers/CacheKeys/SupplierAddressCacheKeys.d.ts +3 -3
  130. package/dist/models/suppliers/CacheKeys/SupplierAddressCacheKeys.js +3 -3
  131. package/dist/models/suppliers/CacheKeys/SupplierCacheKeys.d.ts +3 -3
  132. package/dist/models/suppliers/CacheKeys/SupplierCacheKeys.js +3 -3
  133. package/dist/models/suppliers/CacheKeys/SupplierContactCacheKeys.d.ts +3 -3
  134. package/dist/models/suppliers/CacheKeys/SupplierContactCacheKeys.js +3 -3
  135. package/dist/models/suppliers/CacheKeys/SupplierSubscriptionCacheKeys.d.ts +3 -3
  136. package/dist/models/suppliers/CacheKeys/SupplierSubscriptionCacheKeys.js +3 -3
  137. package/dist/models/suppliers/CacheKeys/index.d.ts +1 -0
  138. package/dist/models/suppliers/CacheKeys/index.d.ts.map +1 -1
  139. package/dist/models/suppliers/CacheKeys/index.js +1 -0
  140. package/dist/models/suppliers/CacheKeys/index.js.map +1 -1
  141. package/dist/models/suppliers/SageOne/SageOneSupplier.d.ts +46 -46
  142. package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.d.ts +10 -10
  143. package/dist/models/suppliers/SageOne/SageOneSupplierCategory.d.ts +4 -4
  144. package/dist/models/suppliers/SageOne/SageOneSupplierContact.d.ts +11 -11
  145. package/dist/models/suppliers/SageOne/SageOneSupplierNote.d.ts +11 -11
  146. package/dist/models/suppliers/SubscriptionUser.d.ts +14 -0
  147. package/dist/models/suppliers/SubscriptionUser.d.ts.map +1 -0
  148. package/dist/models/suppliers/SubscriptionUser.js +2 -0
  149. package/dist/models/suppliers/SubscriptionUser.js.map +1 -0
  150. package/dist/models/suppliers/SupplierSubscription.d.ts +7 -0
  151. package/dist/models/suppliers/SupplierSubscription.d.ts.map +1 -1
  152. package/dist/models/suppliers/index.d.ts +1 -0
  153. package/dist/models/suppliers/index.d.ts.map +1 -1
  154. package/dist/models/suppliers/index.js +1 -0
  155. package/dist/models/suppliers/index.js.map +1 -1
  156. package/dist/models/vendorcatalog/ModelView/ShopEventProductModelView.d.ts +2 -0
  157. package/dist/models/vendorcatalog/ModelView/ShopEventProductModelView.d.ts.map +1 -1
  158. package/dist/models/vendorcatalog/ModelView/VendorProductRequests.d.ts +18 -14
  159. package/dist/models/vendorcatalog/ModelView/VendorProductRequests.d.ts.map +1 -1
  160. package/dist/react/hooks/services/useProcurementsServices.d.ts +37 -1
  161. package/dist/react/hooks/services/useProcurementsServices.d.ts.map +1 -1
  162. package/dist/react/hooks/services/useProcurementsServices.js +54 -0
  163. package/dist/react/hooks/services/useProcurementsServices.js.map +1 -1
  164. package/dist/react/hooks/services/useSupplierServices.d.ts +5 -1
  165. package/dist/react/hooks/services/useSupplierServices.d.ts.map +1 -1
  166. package/dist/react/hooks/services/useSupplierServices.js +6 -0
  167. package/dist/react/hooks/services/useSupplierServices.js.map +1 -1
  168. package/dist/services/procurements/ApproverPortalService.d.ts +16 -0
  169. package/dist/services/procurements/ApproverPortalService.d.ts.map +1 -0
  170. package/dist/services/procurements/ApproverPortalService.js +29 -0
  171. package/dist/services/procurements/ApproverPortalService.js.map +1 -0
  172. package/dist/services/procurements/CurrencyService.d.ts +16 -0
  173. package/dist/services/procurements/CurrencyService.d.ts.map +1 -0
  174. package/dist/services/procurements/CurrencyService.js +19 -0
  175. package/dist/services/procurements/CurrencyService.js.map +1 -0
  176. package/dist/services/procurements/FinancePortalService.d.ts +17 -0
  177. package/dist/services/procurements/FinancePortalService.d.ts.map +1 -0
  178. package/dist/services/procurements/FinancePortalService.js +33 -0
  179. package/dist/services/procurements/FinancePortalService.js.map +1 -0
  180. package/dist/services/procurements/ProcurementDashboardService.d.ts +14 -0
  181. package/dist/services/procurements/ProcurementDashboardService.d.ts.map +1 -0
  182. package/dist/services/procurements/ProcurementDashboardService.js +21 -0
  183. package/dist/services/procurements/ProcurementDashboardService.js.map +1 -0
  184. package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts +10 -0
  185. package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts.map +1 -0
  186. package/dist/services/procurements/ProcurementRoleAssignmentService.js +13 -0
  187. package/dist/services/procurements/ProcurementRoleAssignmentService.js.map +1 -0
  188. package/dist/services/procurements/QuotationLineApprovalService.d.ts +28 -0
  189. package/dist/services/procurements/QuotationLineApprovalService.d.ts.map +1 -0
  190. package/dist/services/procurements/QuotationLineApprovalService.js +41 -0
  191. package/dist/services/procurements/QuotationLineApprovalService.js.map +1 -0
  192. package/dist/services/procurements/RequestApprovalService.d.ts +10 -0
  193. package/dist/services/procurements/RequestApprovalService.d.ts.map +1 -0
  194. package/dist/services/procurements/RequestApprovalService.js +13 -0
  195. package/dist/services/procurements/RequestApprovalService.js.map +1 -0
  196. package/dist/services/procurements/RequestPurchaseOrderService.d.ts +10 -0
  197. package/dist/services/procurements/RequestPurchaseOrderService.d.ts.map +1 -0
  198. package/dist/services/procurements/RequestPurchaseOrderService.js +13 -0
  199. package/dist/services/procurements/RequestPurchaseOrderService.js.map +1 -0
  200. package/dist/services/procurements/StaffRequestPortalService.d.ts +18 -0
  201. package/dist/services/procurements/StaffRequestPortalService.d.ts.map +1 -0
  202. package/dist/services/procurements/StaffRequestPortalService.js +36 -0
  203. package/dist/services/procurements/StaffRequestPortalService.js.map +1 -0
  204. package/dist/services/procurements/index.d.ts +27 -0
  205. package/dist/services/procurements/index.d.ts.map +1 -1
  206. package/dist/services/procurements/index.js +27 -0
  207. package/dist/services/procurements/index.js.map +1 -1
  208. package/dist/services/suppliers/SubscriptionUserService.d.ts +20 -0
  209. package/dist/services/suppliers/SubscriptionUserService.d.ts.map +1 -0
  210. package/dist/services/suppliers/SubscriptionUserService.js +27 -0
  211. package/dist/services/suppliers/SubscriptionUserService.js.map +1 -0
  212. package/dist/services/suppliers/index.d.ts +3 -0
  213. package/dist/services/suppliers/index.d.ts.map +1 -1
  214. package/dist/services/suppliers/index.js +3 -0
  215. package/dist/services/suppliers/index.js.map +1 -1
  216. package/package.json +1 -1
@@ -6,80 +6,80 @@ export interface PurchaseRequest {
6
6
  /**
7
7
  * Primary key.
8
8
  */
9
- RequestID: number;
9
+ requestID: number;
10
10
  /**
11
11
  * Type of request (e.g., office supplies, hardware).
12
12
  */
13
- RequestTypeID: number;
13
+ requestTypeID: number;
14
14
  /**
15
15
  * Location identifier from the Location microservice.
16
16
  */
17
- LocationID: number;
17
+ locationID: number;
18
18
  /**
19
19
  * ProjectID from the Project microservice.
20
20
  */
21
- ProjectID: number | null;
21
+ projectID: number | null;
22
22
  /**
23
23
  * Department identifier from the Department microservice.
24
24
  */
25
- DepartmentID: number;
25
+ departmentID: number;
26
26
  /**
27
27
  * User ID of the staff who created the request.
28
28
  */
29
- RequestedByUserId: string | null;
29
+ requestedByUserId: string | null;
30
30
  /**
31
31
  * Timestamp when the request was created.
32
32
  */
33
- RequestedOn: string;
33
+ requestedOn: string;
34
34
  /**
35
35
  * What the user is requesting, e.g., "New laptop for John Doe".
36
36
  * This is a free-text field for user convenience.
37
37
  */
38
- Name: string | null;
38
+ name: string | null;
39
39
  /**
40
40
  * The details of the request like products, quantities, etc.
41
41
  * This is a free-text field for user convenience.
42
42
  */
43
- Details: string | null;
43
+ details: string | null;
44
44
  /**
45
45
  * Reason or justification provided by the requester.
46
46
  */
47
- Reason: string | null;
47
+ reason: string | null;
48
48
  /**
49
49
  * Desired date by which the items are needed.
50
50
  */
51
- NeededBy: string;
51
+ neededBy: string;
52
52
  /**
53
53
  * Status ID from the RequestStatus lookup table.
54
54
  */
55
- StatusID: number;
55
+ statusID: number;
56
56
  /**
57
57
  * Generated request number for tracking (e.g. PR-2025-0001).
58
58
  */
59
- PurchaseOrderNumber: string | null;
59
+ purchaseOrderNumber: string | null;
60
60
  /**
61
61
  * Date on which payment is scheduled (set when status = Approval–Accepted).
62
62
  */
63
- PaymentDate: string | null;
63
+ paymentDate: string | null;
64
64
  /**
65
65
  * Date on which a held request should be revisited.
66
66
  */
67
- RevisitOn: string | null;
67
+ revisitOn: string | null;
68
68
  /**
69
69
  * User ID of the finance head who accepted the request.
70
70
  */
71
- AcceptedByUserId: string | null;
71
+ acceptedByUserId: string | null;
72
72
  /**
73
73
  * Timestamp for last modification, stored as decimal ticks.
74
74
  */
75
- ModifiedDateTime: number;
75
+ modifiedDateTime: number;
76
76
  /**
77
77
  * Timestamp for creation, stored as decimal ticks.
78
78
  */
79
- CreatedDateTime: number;
79
+ createdDateTime: number;
80
80
  /**
81
81
  * Flag indicating whether this request needs processing by the worker service.
82
82
  */
83
- NeedsProcessing: boolean;
83
+ needsProcessing: boolean;
84
84
  }
85
85
  //# sourceMappingURL=PurchaseRequest.d.ts.map
@@ -5,54 +5,58 @@ export interface Quotation {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- QuotationID: number;
8
+ quotationID: number;
9
9
  /**
10
10
  * FK to PurchaseRequest.RequestID.
11
11
  */
12
- RequestID: number;
12
+ requestID: number;
13
13
  /**
14
14
  * Supplier identifier from the Supplier microservice.
15
15
  */
16
- SupplierID: number;
16
+ supplierID: number;
17
17
  /**
18
18
  * Status ID from the QuotationStatus lookup.
19
19
  */
20
- StatusID: number;
20
+ statusID: number;
21
21
  /**
22
22
  * Supplier name.
23
23
  */
24
- SupplierName: string | null;
24
+ supplierName: string | null;
25
25
  /**
26
26
  * Free-text comment about this quote.
27
27
  */
28
- Comment: string | null;
28
+ comment: string | null;
29
29
  /**
30
30
  * Monetary amount quoted.
31
31
  */
32
- Amount: number;
32
+ amount: number;
33
33
  /**
34
34
  * Date when the quote expires.
35
35
  */
36
- ExpiryDate: string;
36
+ expiryDate: string;
37
37
  /**
38
38
  * URL to the uploaded quotation document.
39
39
  */
40
- DocumentUrl: string | null;
40
+ documentUrl: string | null;
41
41
  /**
42
42
  * Flag if staff marked this as their preferred.
43
43
  */
44
- IsPreferred: boolean;
44
+ isPreferred: boolean;
45
45
  /**
46
46
  * Reason why staff preferred this quote.
47
47
  */
48
- PreferenceReason: string | null;
48
+ preferenceReason: string | null;
49
+ /**
50
+ * Currency code for this quotation (e.g. "ZAR", "USD").
51
+ */
52
+ currencyCode: string;
49
53
  /**
50
54
  * Last modification timestamp as decimal ticks.
51
55
  */
52
- ModifiedDateTime: number;
56
+ modifiedDateTime: number;
53
57
  /**
54
58
  * Creation timestamp as decimal ticks.
55
59
  */
56
- CreatedDateTime: number;
60
+ createdDateTime: number;
57
61
  }
58
62
  //# sourceMappingURL=Quotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Quotation.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/Quotation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"Quotation.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/Quotation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -5,42 +5,54 @@ export interface QuotationLine {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- QuotationLineID: number;
8
+ quotationLineID: number;
9
9
  /**
10
10
  * FK to Quotation.QuotationID.
11
11
  */
12
- QuotationID: number;
12
+ quotationID: number;
13
13
  /**
14
14
  * Item identifier.
15
15
  */
16
- ItemID: number;
16
+ itemID: number;
17
17
  /**
18
18
  * Item code.
19
19
  */
20
- Code: string | null;
20
+ code: string | null;
21
21
  /**
22
22
  * Item description.
23
23
  */
24
- Description: string;
24
+ description: string;
25
25
  /**
26
26
  * Quantity quoted.
27
27
  */
28
- Quantity: number;
28
+ quantity: number;
29
29
  /**
30
30
  * Unit price.
31
31
  */
32
- UnitPrice: number;
32
+ unitPrice: number;
33
33
  /**
34
34
  * Total price for this line.
35
35
  */
36
- TotalPrice: number;
36
+ totalPrice: number;
37
+ /**
38
+ * Denormalized from parent Quotation for easy supplier grouping.
39
+ */
40
+ supplierID: number;
41
+ /**
42
+ * Line-level approval status (0=Pending, 1=Approved, -2=Rejected).
43
+ */
44
+ approvalStatusID: number;
45
+ /**
46
+ * Currency code for this line item.
47
+ */
48
+ currencyCode: string;
37
49
  /**
38
50
  * Creation ticks.
39
51
  */
40
- CreatedDateTime: number | null;
52
+ createdDateTime: number | null;
41
53
  /**
42
54
  * Modification ticks.
43
55
  */
44
- ModifiedDateTime: number | null;
56
+ modifiedDateTime: number | null;
45
57
  }
46
58
  //# sourceMappingURL=QuotationLine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuotationLine.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/QuotationLine.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
1
+ {"version":3,"file":"QuotationLine.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/QuotationLine.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Tracks approval/rejection of individual quotation line items.
3
+ * Enables per-line-item approval and per-supplier PO generation.
4
+ */
5
+ export interface QuotationLineApproval {
6
+ approvalID: number;
7
+ quotationLineID: number;
8
+ quotationID: number;
9
+ requestID: number;
10
+ supplierID: number;
11
+ userId: string;
12
+ roleTypeID: number;
13
+ statusID: number;
14
+ reason: string | null;
15
+ responseDate: string | null;
16
+ createdDateTime: number;
17
+ modifiedDateTime: number;
18
+ }
19
+ //# sourceMappingURL=QuotationLineApproval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuotationLineApproval.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/QuotationLineApproval.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=QuotationLineApproval.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuotationLineApproval.js","sourceRoot":"","sources":["../../../src/models/procurements/QuotationLineApproval.ts"],"names":[],"mappings":""}
@@ -5,30 +5,30 @@ export interface QuotationStatus {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- StatusID: number;
8
+ statusID: number;
9
9
  /**
10
10
  * Name of status (e.g. "Requested").
11
11
  */
12
- Name: string | null;
12
+ name: string | null;
13
13
  /**
14
14
  * Description for tooltips/logs.
15
15
  */
16
- Description: string | null;
16
+ description: string | null;
17
17
  /**
18
18
  * Badge color for UI.
19
19
  */
20
- Color: string | null;
20
+ color: string | null;
21
21
  /**
22
22
  * Icon hint for UI.
23
23
  */
24
- Icon: string | null;
24
+ icon: string | null;
25
25
  /**
26
26
  * Creation ticks.
27
27
  */
28
- CreatedDateTime: number | null;
28
+ createdDateTime: number | null;
29
29
  /**
30
30
  * Modification ticks.
31
31
  */
32
- ModifiedDateTime: number | null;
32
+ modifiedDateTime: number | null;
33
33
  }
34
34
  //# sourceMappingURL=QuotationStatus.d.ts.map
@@ -5,34 +5,34 @@ export interface RequestApproval {
5
5
  /**
6
6
  * User ID of the approver (composite key part 1).
7
7
  */
8
- UserId: string;
8
+ userId: string;
9
9
  /**
10
10
  * Request ID (composite key part 2).
11
11
  */
12
- RequestID: number;
12
+ requestID: number;
13
13
  /**
14
14
  * Role type ID (composite key part 3).
15
15
  */
16
- RoleTypeID: number;
16
+ roleTypeID: number;
17
17
  /**
18
18
  * Approval status ID.
19
19
  */
20
- StatusID: number;
20
+ statusID: number;
21
21
  /**
22
22
  * Reason for approval/rejection.
23
23
  */
24
- Reason: string | null;
24
+ reason: string | null;
25
25
  /**
26
26
  * Date when the approver responded.
27
27
  */
28
- ResponseDate: string | null;
28
+ responseDate: string | null;
29
29
  /**
30
30
  * Creation timestamp as decimal ticks.
31
31
  */
32
- CreatedDateTime: number;
32
+ createdDateTime: number;
33
33
  /**
34
34
  * Modification timestamp as decimal ticks.
35
35
  */
36
- ModifiedDateTime: number;
36
+ modifiedDateTime: number;
37
37
  }
38
38
  //# sourceMappingURL=RequestApproval.d.ts.map
@@ -5,30 +5,30 @@ export interface RequestApprovalStatus {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- StatusID: number;
8
+ statusID: number;
9
9
  /**
10
10
  * Status name.
11
11
  */
12
- Name: string;
12
+ name: string;
13
13
  /**
14
14
  * Status description.
15
15
  */
16
- Description: string | null;
16
+ description: string | null;
17
17
  /**
18
18
  * UI badge color.
19
19
  */
20
- Color: string | null;
20
+ color: string | null;
21
21
  /**
22
22
  * UI icon hint.
23
23
  */
24
- Icon: string | null;
24
+ icon: string | null;
25
25
  /**
26
26
  * Creation timestamp as decimal ticks.
27
27
  */
28
- CreatedDateTime: number;
28
+ createdDateTime: number;
29
29
  /**
30
30
  * Modification timestamp as decimal ticks.
31
31
  */
32
- ModifiedDateTime: number;
32
+ modifiedDateTime: number;
33
33
  }
34
34
  //# sourceMappingURL=RequestApprovalStatus.d.ts.map
@@ -6,38 +6,38 @@ export interface RequestAttachment {
6
6
  /**
7
7
  * Primary key for the attachment.
8
8
  */
9
- AttachmentID: number;
9
+ attachmentID: number;
10
10
  /**
11
11
  * Foreign key linking to the PurchaseRequest.
12
12
  */
13
- RequestID: number;
13
+ requestID: number;
14
14
  /**
15
15
  * Original name of the uploaded file.
16
16
  */
17
- FileName: string | null;
17
+ fileName: string | null;
18
18
  /**
19
19
  * URL or path where the file is stored.
20
20
  */
21
- FileURL: string | null;
21
+ fileURL: string | null;
22
22
  /**
23
23
  * MIME type or file extension of the attachment.
24
24
  */
25
- FileType: string | null;
25
+ fileType: string | null;
26
26
  /**
27
27
  * Date and time when the file was attached.
28
28
  */
29
- AttachmentDate: string | null;
29
+ attachmentDate: string | null;
30
30
  /**
31
31
  * User ID of the person who uploaded the attachment.
32
32
  */
33
- CreatedBy: string | null;
33
+ createdBy: string | null;
34
34
  /**
35
35
  * Timestamp for last modification, stored as decimal ticks.
36
36
  */
37
- ModifiedDateTime: number | null;
37
+ modifiedDateTime: number | null;
38
38
  /**
39
39
  * Timestamp for creation, stored as decimal ticks.
40
40
  */
41
- CreatedDateTime: number | null;
41
+ createdDateTime: number | null;
42
42
  }
43
43
  //# sourceMappingURL=RequestAttachment.d.ts.map
@@ -6,30 +6,30 @@ export interface RequestComment {
6
6
  /**
7
7
  * Primary key for the comment.
8
8
  */
9
- CommentID: number;
9
+ commentID: number;
10
10
  /**
11
11
  * Foreign key linking to the PurchaseRequest.
12
12
  */
13
- RequestID: number;
13
+ requestID: number;
14
14
  /**
15
15
  * The actual comment text content.
16
16
  */
17
- Comment: string | null;
17
+ comment: string | null;
18
18
  /**
19
19
  * Date and time when the comment was posted.
20
20
  */
21
- CommentDate: string | null;
21
+ commentDate: string | null;
22
22
  /**
23
23
  * User ID of the person who created the comment.
24
24
  */
25
- CreatedBy: string | null;
25
+ createdBy: string | null;
26
26
  /**
27
27
  * Timestamp for last modification, stored as decimal ticks.
28
28
  */
29
- ModifiedDateTime: number | null;
29
+ modifiedDateTime: number | null;
30
30
  /**
31
31
  * Timestamp for creation, stored as decimal ticks.
32
32
  */
33
- CreatedDateTime: number | null;
33
+ createdDateTime: number | null;
34
34
  }
35
35
  //# sourceMappingURL=RequestComment.d.ts.map
@@ -5,22 +5,34 @@ export interface RequestPurchaseOrder {
5
5
  /**
6
6
  * Request ID (composite key part 1).
7
7
  */
8
- RequestID: number;
8
+ requestID: number;
9
9
  /**
10
10
  * Quotation ID (composite key part 2).
11
11
  */
12
- QuotationID: number;
12
+ quotationID: number;
13
13
  /**
14
14
  * Purchase order number.
15
15
  */
16
- PurchaseOrderNumber: string | null;
16
+ purchaseOrderNumber: string | null;
17
+ /**
18
+ * Which supplier this PO is for.
19
+ */
20
+ supplierID: number;
21
+ /**
22
+ * SageOne Purchase Order ID after generation.
23
+ */
24
+ sagePurchaseOrderID: number | null;
25
+ /**
26
+ * PO status: Pending, Generated, Sent, Cancelled.
27
+ */
28
+ status: string | null;
17
29
  /**
18
30
  * Modification timestamp as decimal ticks.
19
31
  */
20
- ModifiedDateTime: number;
32
+ modifiedDateTime: number;
21
33
  /**
22
34
  * Creation timestamp as decimal ticks.
23
35
  */
24
- CreatedDateTime: number;
36
+ createdDateTime: number;
25
37
  }
26
38
  //# sourceMappingURL=RequestPurchaseOrder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestPurchaseOrder.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/RequestPurchaseOrder.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"RequestPurchaseOrder.d.ts","sourceRoot":"","sources":["../../../src/models/procurements/RequestPurchaseOrder.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -5,30 +5,30 @@ export interface RequestStage {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- StageID: number;
8
+ stageID: number;
9
9
  /**
10
10
  * Stage name.
11
11
  */
12
- Name: string | null;
12
+ name: string | null;
13
13
  /**
14
14
  * Stage description.
15
15
  */
16
- Description: string | null;
16
+ description: string | null;
17
17
  /**
18
18
  * Badge color for UI.
19
19
  */
20
- Color: string | null;
20
+ color: string | null;
21
21
  /**
22
22
  * Icon hint for UI.
23
23
  */
24
- Icon: string | null;
24
+ icon: string | null;
25
25
  /**
26
26
  * Creation ticks.
27
27
  */
28
- CreatedDateTime: number;
28
+ createdDateTime: number;
29
29
  /**
30
30
  * Modification ticks.
31
31
  */
32
- ModifiedDateTime: number;
32
+ modifiedDateTime: number;
33
33
  }
34
34
  //# sourceMappingURL=RequestStage.d.ts.map
@@ -5,34 +5,34 @@ export interface RequestStatus {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- StatusID: number;
8
+ statusID: number;
9
9
  /**
10
10
  * High-level stage grouping: 1=Request,2=Quotation,...
11
11
  */
12
- StageID: number;
12
+ stageID: number;
13
13
  /**
14
14
  * Combined name (e.g. "Request – Submitted").
15
15
  */
16
- Name: string | null;
16
+ name: string | null;
17
17
  /**
18
18
  * Human-friendly description for tooltips/audit.
19
19
  */
20
- Description: string | null;
20
+ description: string | null;
21
21
  /**
22
22
  * Badge color for UI.
23
23
  */
24
- Color: string | null;
24
+ color: string | null;
25
25
  /**
26
26
  * Icon hint for UI.
27
27
  */
28
- Icon: string | null;
28
+ icon: string | null;
29
29
  /**
30
30
  * Last modified ticks.
31
31
  */
32
- ModifiedDateTime: number;
32
+ modifiedDateTime: number;
33
33
  /**
34
34
  * Creation ticks.
35
35
  */
36
- CreatedDateTime: number;
36
+ createdDateTime: number;
37
37
  }
38
38
  //# sourceMappingURL=RequestStatus.d.ts.map
@@ -5,30 +5,30 @@ export interface RequestType {
5
5
  /**
6
6
  * Primary key.
7
7
  */
8
- TypeID: number;
8
+ typeID: number;
9
9
  /**
10
10
  * Machine-friendly key or title.
11
11
  */
12
- Name: string | null;
12
+ name: string | null;
13
13
  /**
14
14
  * Human-readable description.
15
15
  */
16
- Description: string | null;
16
+ description: string | null;
17
17
  /**
18
18
  * UI badge color (hex).
19
19
  */
20
- Color: string | null;
20
+ color: string | null;
21
21
  /**
22
22
  * UI icon (e.g. font-awesome class).
23
23
  */
24
- Icon: string | null;
24
+ icon: string | null;
25
25
  /**
26
26
  * Last modified timestamp ticks.
27
27
  */
28
- ModifiedDateTime: number;
28
+ modifiedDateTime: number;
29
29
  /**
30
30
  * Creation timestamp ticks.
31
31
  */
32
- CreatedDateTime: number;
32
+ createdDateTime: number;
33
33
  }
34
34
  //# sourceMappingURL=RequestType.d.ts.map
@@ -18,6 +18,8 @@ export * from './ProcurementRoleAssignment';
18
18
  export * from './Notification';
19
19
  export * from './ProcurementNotificationQueue';
20
20
  export * from './AuditLog';
21
+ export * from './Currency';
22
+ export * from './QuotationLineApproval';
21
23
  export * from './ModelView';
22
24
  export * from './CacheKeys';
23
25
  //# sourceMappingURL=index.d.ts.map