@powerhousedao/contributor-billing 0.1.2 → 0.1.4

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 (159) hide show
  1. package/dist/document-models/expense-report/gen/actions.d.ts +4 -0
  2. package/dist/document-models/expense-report/gen/actions.d.ts.map +1 -0
  3. package/dist/document-models/expense-report/gen/actions.js +1 -0
  4. package/dist/document-models/expense-report/gen/creators.d.ts +2 -0
  5. package/dist/document-models/expense-report/gen/creators.d.ts.map +1 -0
  6. package/dist/document-models/expense-report/gen/creators.js +1 -0
  7. package/dist/document-models/expense-report/gen/document-model.d.ts +3 -0
  8. package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -0
  9. package/dist/document-models/expense-report/gen/document-model.js +202 -0
  10. package/dist/document-models/expense-report/gen/expense-report/actions.d.ts +8 -0
  11. package/dist/document-models/expense-report/gen/expense-report/actions.d.ts.map +1 -0
  12. package/dist/document-models/expense-report/gen/expense-report/actions.js +1 -0
  13. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts +4 -0
  14. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts.map +1 -0
  15. package/dist/document-models/expense-report/gen/expense-report/creators.js +3 -0
  16. package/dist/document-models/expense-report/gen/expense-report/error.d.ts +2 -0
  17. package/dist/document-models/expense-report/gen/expense-report/error.d.ts.map +1 -0
  18. package/dist/document-models/expense-report/gen/expense-report/error.js +1 -0
  19. package/dist/document-models/expense-report/gen/expense-report/object.d.ts +7 -0
  20. package/dist/document-models/expense-report/gen/expense-report/object.d.ts.map +1 -0
  21. package/dist/document-models/expense-report/gen/expense-report/object.js +7 -0
  22. package/dist/document-models/expense-report/gen/expense-report/operations.d.ts +7 -0
  23. package/dist/document-models/expense-report/gen/expense-report/operations.d.ts.map +1 -0
  24. package/dist/document-models/expense-report/gen/expense-report/operations.js +1 -0
  25. package/dist/document-models/expense-report/gen/index.d.ts +8 -0
  26. package/dist/document-models/expense-report/gen/index.d.ts.map +1 -0
  27. package/dist/document-models/expense-report/gen/index.js +6 -0
  28. package/dist/document-models/expense-report/gen/object.d.ts +15 -0
  29. package/dist/document-models/expense-report/gen/object.d.ts.map +1 -0
  30. package/dist/document-models/expense-report/gen/object.js +25 -0
  31. package/dist/document-models/expense-report/gen/ph-factories.d.ts +27 -0
  32. package/dist/document-models/expense-report/gen/ph-factories.d.ts.map +1 -0
  33. package/dist/document-models/expense-report/gen/ph-factories.js +189 -0
  34. package/dist/document-models/expense-report/gen/reducer.d.ts +5 -0
  35. package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -0
  36. package/dist/document-models/expense-report/gen/reducer.js +76 -0
  37. package/dist/document-models/expense-report/gen/schema/index.d.ts +3 -0
  38. package/dist/document-models/expense-report/gen/schema/index.d.ts.map +1 -0
  39. package/dist/document-models/expense-report/gen/schema/index.js +2 -0
  40. package/dist/document-models/expense-report/gen/schema/types.d.ts +254 -0
  41. package/dist/document-models/expense-report/gen/schema/types.d.ts.map +1 -0
  42. package/dist/document-models/expense-report/gen/schema/types.js +1 -0
  43. package/dist/document-models/expense-report/gen/schema/zod.d.ts +32 -0
  44. package/dist/document-models/expense-report/gen/schema/zod.d.ts.map +1 -0
  45. package/dist/document-models/expense-report/gen/schema/zod.js +216 -0
  46. package/dist/document-models/expense-report/gen/types.d.ts +10 -0
  47. package/dist/document-models/expense-report/gen/types.d.ts.map +1 -0
  48. package/dist/document-models/expense-report/gen/types.js +1 -0
  49. package/dist/document-models/expense-report/gen/utils.d.ts +22 -0
  50. package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -0
  51. package/dist/document-models/expense-report/gen/utils.js +181 -0
  52. package/dist/document-models/expense-report/gen/wallet/actions.d.ts +64 -0
  53. package/dist/document-models/expense-report/gen/wallet/actions.d.ts.map +1 -0
  54. package/dist/document-models/expense-report/gen/wallet/actions.js +1 -0
  55. package/dist/document-models/expense-report/gen/wallet/creators.d.ts +18 -0
  56. package/dist/document-models/expense-report/gen/wallet/creators.d.ts.map +1 -0
  57. package/dist/document-models/expense-report/gen/wallet/creators.js +17 -0
  58. package/dist/document-models/expense-report/gen/wallet/error.d.ts +2 -0
  59. package/dist/document-models/expense-report/gen/wallet/error.d.ts.map +1 -0
  60. package/dist/document-models/expense-report/gen/wallet/error.js +1 -0
  61. package/dist/document-models/expense-report/gen/wallet/object.d.ts +21 -0
  62. package/dist/document-models/expense-report/gen/wallet/object.d.ts.map +1 -0
  63. package/dist/document-models/expense-report/gen/wallet/object.js +49 -0
  64. package/dist/document-models/expense-report/gen/wallet/operations.d.ts +21 -0
  65. package/dist/document-models/expense-report/gen/wallet/operations.d.ts.map +1 -0
  66. package/dist/document-models/expense-report/gen/wallet/operations.js +1 -0
  67. package/dist/document-models/expense-report/index.d.ts +39 -0
  68. package/dist/document-models/expense-report/index.d.ts.map +1 -0
  69. package/dist/document-models/expense-report/index.js +21 -0
  70. package/dist/document-models/expense-report/src/reducers/wallet.d.ts +3 -0
  71. package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -0
  72. package/dist/document-models/expense-report/src/reducers/wallet.js +180 -0
  73. package/dist/document-models/expense-report/src/tests/document-model.test.d.ts +6 -0
  74. package/dist/document-models/expense-report/src/tests/document-model.test.d.ts.map +1 -0
  75. package/dist/document-models/expense-report/src/tests/document-model.test.js +18 -0
  76. package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts +6 -0
  77. package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts.map +1 -0
  78. package/dist/document-models/expense-report/src/tests/expense-report.test.js +24 -0
  79. package/dist/document-models/expense-report/src/tests/wallet.test.d.ts +6 -0
  80. package/dist/document-models/expense-report/src/tests/wallet.test.d.ts.map +1 -0
  81. package/dist/document-models/expense-report/src/tests/wallet.test.js +24 -0
  82. package/dist/document-models/expense-report/src/utils.d.ts +2 -0
  83. package/dist/document-models/expense-report/src/utils.d.ts.map +1 -0
  84. package/dist/document-models/expense-report/src/utils.js +1 -0
  85. package/dist/document-models/index.d.ts +1 -0
  86. package/dist/document-models/index.d.ts.map +1 -1
  87. package/dist/document-models/index.js +1 -0
  88. package/dist/document-models/integrations/gen/ph-factories.d.ts.map +1 -1
  89. package/dist/document-models/integrations/gen/ph-factories.js +2 -14
  90. package/dist/document-models/integrations/gen/utils.d.ts.map +1 -1
  91. package/dist/document-models/integrations/gen/utils.js +2 -14
  92. package/dist/document-models/invoice/gen/ph-factories.d.ts.map +1 -1
  93. package/dist/document-models/invoice/gen/ph-factories.js +2 -5
  94. package/dist/document-models/invoice/gen/schema/types.d.ts +1 -1
  95. package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
  96. package/dist/document-models/invoice/gen/utils.d.ts.map +1 -1
  97. package/dist/document-models/invoice/gen/utils.js +1 -4
  98. package/dist/editors/billing-statement/components/lineItemsTable.d.ts.map +1 -1
  99. package/dist/editors/billing-statement/components/lineItemsTable.js +71 -13
  100. package/dist/editors/billing-statement/editor.js +1 -1
  101. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  102. package/dist/editors/contributor-billing/components/DriveExplorer.js +8 -4
  103. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts +4 -1
  104. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -1
  105. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.js +2 -2
  106. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
  107. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +24 -1
  108. package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts +11 -0
  109. package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts.map +1 -0
  110. package/dist/editors/expense-report/components/AddBillingStatementModal.js +170 -0
  111. package/dist/editors/expense-report/components/AggregatedExpensesTable.d.ts +11 -0
  112. package/dist/editors/expense-report/components/AggregatedExpensesTable.d.ts.map +1 -0
  113. package/dist/editors/expense-report/components/AggregatedExpensesTable.js +232 -0
  114. package/dist/editors/expense-report/components/WalletsTable.d.ts +10 -0
  115. package/dist/editors/expense-report/components/WalletsTable.d.ts.map +1 -0
  116. package/dist/editors/expense-report/components/WalletsTable.js +164 -0
  117. package/dist/editors/expense-report/editor.d.ts +2 -0
  118. package/dist/editors/expense-report/editor.d.ts.map +1 -0
  119. package/dist/editors/expense-report/editor.js +88 -0
  120. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts +5 -0
  121. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -0
  122. package/dist/editors/expense-report/hooks/useSyncWallet.js +55 -0
  123. package/dist/editors/expense-report/hooks/useWalletSync.d.ts +9 -0
  124. package/dist/editors/expense-report/hooks/useWalletSync.d.ts.map +1 -0
  125. package/dist/editors/expense-report/hooks/useWalletSync.js +79 -0
  126. package/dist/editors/expense-report/index.d.ts +3 -0
  127. package/dist/editors/expense-report/index.d.ts.map +1 -0
  128. package/dist/editors/expense-report/index.js +11 -0
  129. package/dist/editors/hooks/useExpenseReportDocument.d.ts +4 -0
  130. package/dist/editors/hooks/useExpenseReportDocument.d.ts.map +1 -0
  131. package/dist/editors/hooks/useExpenseReportDocument.js +8 -0
  132. package/dist/editors/index.d.ts +1 -0
  133. package/dist/editors/index.d.ts.map +1 -1
  134. package/dist/editors/index.js +1 -0
  135. package/dist/editors/invoice/components/statusModalComponents.d.ts.map +1 -1
  136. package/dist/editors/invoice/components/statusModalComponents.js +4 -4
  137. package/dist/editors/invoice/editor.js +1 -1
  138. package/dist/editors/invoice/ingestPDF.d.ts.map +1 -1
  139. package/dist/editors/invoice/ingestPDF.js +3 -3
  140. package/dist/editors/invoice/invoiceToGnosis.js +1 -1
  141. package/dist/editors/invoice/requestFinance.js +1 -1
  142. package/dist/editors/invoice/uploadPdfChunked.js +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.d.ts.map +1 -1
  145. package/dist/powerhouse.manifest.json +13 -2
  146. package/dist/style.css +525 -37
  147. package/dist/subgraphs/expense-report/index.d.ts +11 -0
  148. package/dist/subgraphs/expense-report/index.d.ts.map +1 -0
  149. package/dist/subgraphs/expense-report/index.js +11 -0
  150. package/dist/subgraphs/expense-report/resolvers.d.ts +3 -0
  151. package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -0
  152. package/dist/subgraphs/expense-report/resolvers.js +252 -0
  153. package/dist/subgraphs/expense-report/schema.d.ts +3 -0
  154. package/dist/subgraphs/expense-report/schema.d.ts.map +1 -0
  155. package/dist/subgraphs/expense-report/schema.js +228 -0
  156. package/dist/subgraphs/index.d.ts +1 -0
  157. package/dist/subgraphs/index.d.ts.map +1 -1
  158. package/dist/subgraphs/index.js +1 -0
  159. package/package.json +13 -13
@@ -0,0 +1,181 @@
1
+ import { baseCreateDocument, baseSaveToFile, baseSaveToFileHandle, baseLoadFromFile, baseLoadFromInput, defaultBaseState, generateId, } from "document-model";
2
+ import { reducer } from "./reducer.js";
3
+ export const initialGlobalState = {
4
+ wallets: [],
5
+ groups: [
6
+ {
7
+ id: "57b0fdd7-51f5-4725-8a05-7ab3c15d90c2",
8
+ label: "Headcount Expenses",
9
+ parentId: null,
10
+ },
11
+ {
12
+ id: "4971def8-64f8-4eab-b69b-a869d10452c2",
13
+ label: "Non-Headcount Expenses",
14
+ parentId: null,
15
+ },
16
+ {
17
+ id: "e27b7f51-dc22-4ebe-8659-4e41824ae58c",
18
+ label: "Travel & Entertainment",
19
+ parentId: "57b0fdd7-51f5-4725-8a05-7ab3c15d90c2",
20
+ },
21
+ {
22
+ id: "e4dce6df-1aa6-4861-b9f4-d861ad74d66c",
23
+ label: "Compensation & Benefits",
24
+ parentId: "57b0fdd7-51f5-4725-8a05-7ab3c15d90c2",
25
+ },
26
+ {
27
+ id: "92e445ba-96af-4793-ae01-9b71035174ba",
28
+ label: "Marketing Expense",
29
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
30
+ },
31
+ {
32
+ id: "778dbd41-3d4a-4c8f-9004-7797f04e5b40",
33
+ label: "Admin Expense",
34
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
35
+ },
36
+ {
37
+ id: "5f024d53-7d0e-4818-9661-256aee69709d",
38
+ label: "Professional Services",
39
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
40
+ },
41
+ {
42
+ id: "659337f4-01c3-495a-89d7-c177c4137620",
43
+ label: "Cost of Goods Sold",
44
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
45
+ },
46
+ {
47
+ id: "1d6f0601-966a-4982-811d-981ac28db0b4",
48
+ label: "Software Development Expense",
49
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
50
+ },
51
+ {
52
+ id: "800dac9a-5665-4826-a972-b3170c789d92",
53
+ label: "Income Tax Expense",
54
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
55
+ },
56
+ {
57
+ id: "30ed3523-c15a-411f-a8f6-7bb6b978f6f8",
58
+ label: "Software Expense",
59
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
60
+ },
61
+ {
62
+ id: "ba7688ad-1329-4344-8f8a-e0f27dc648b8",
63
+ label: "Gas Expense",
64
+ parentId: "4971def8-64f8-4eab-b69b-a869d10452c2",
65
+ },
66
+ {
67
+ label: "Budget",
68
+ parentId: null,
69
+ id: "465367d1-636a-45a1-9e43-4a48dd074918",
70
+ },
71
+ {
72
+ label: "Interest Income",
73
+ parentId: null,
74
+ id: "aa5b7188-2231-445e-9f3d-7e5d1ce5754f",
75
+ },
76
+ {
77
+ label: "Other Income Expense (Non-operating)",
78
+ parentId: null,
79
+ id: "d1e9bd15-930d-4faa-ba61-8f2a3b1d0e8f",
80
+ },
81
+ {
82
+ label: "Other Income",
83
+ parentId: null,
84
+ id: "133b762c-a240-4a42-8bf6-9c29b3675f91",
85
+ },
86
+ {
87
+ label: "Current Asset",
88
+ parentId: null,
89
+ id: "1c61e841-c599-4c38-944a-7c9450c27d17",
90
+ },
91
+ {
92
+ label: "Fixed Asset",
93
+ parentId: null,
94
+ id: "5a33a954-09d0-4ddd-95fc-c56853de4dbd",
95
+ },
96
+ {
97
+ label: "Non-Current Asset",
98
+ parentId: null,
99
+ id: "75130e59-7c11-44ae-980c-eaa4968a4a56",
100
+ },
101
+ {
102
+ label: "Current Liability",
103
+ parentId: null,
104
+ id: "b3091879-f549-4227-beef-c8d4947be2e7",
105
+ },
106
+ {
107
+ label: "Non-current Liability",
108
+ parentId: null,
109
+ id: "2f64aca7-38db-4ff4-8cc5-8e0952c23151",
110
+ },
111
+ {
112
+ label: "Owner Equity",
113
+ parentId: null,
114
+ id: "42e480eb-9790-49ed-af35-3ab124af556e",
115
+ },
116
+ {
117
+ label: "Equity",
118
+ parentId: null,
119
+ id: "248f0af0-74b1-4fd9-9e7f-3d723f5c4c56",
120
+ },
121
+ {
122
+ label: "Adjustment A/C",
123
+ parentId: null,
124
+ id: "5044752a-5618-4ab2-90b7-54b5d95e38cf",
125
+ },
126
+ {
127
+ label: "Temporary Holding Account",
128
+ parentId: null,
129
+ id: "566fede7-b593-43d0-84b6-50301e5a84ed",
130
+ },
131
+ {
132
+ label: "Other",
133
+ parentId: null,
134
+ id: "f0077e3f-2931-4637-8715-ba3a01ce3786",
135
+ },
136
+ {
137
+ label: "Internal Transfers",
138
+ parentId: null,
139
+ id: "470504f0-a89f-4555-a46e-667c74240238",
140
+ },
141
+ ],
142
+ periodStart: null,
143
+ periodEnd: null,
144
+ };
145
+ export const initialLocalState = {};
146
+ export const createState = (state) => {
147
+ return {
148
+ ...defaultBaseState(),
149
+ global: { ...initialGlobalState, ...(state?.global ?? {}) },
150
+ local: { ...initialLocalState, ...(state?.local ?? {}) },
151
+ };
152
+ };
153
+ export const createDocument = (state) => {
154
+ const document = baseCreateDocument(createState, state);
155
+ document.header.documentType = "powerhouse/expense-report";
156
+ // for backwards compatibility, but this is NOT a valid signed document id
157
+ document.header.id = generateId();
158
+ return document;
159
+ };
160
+ export const saveToFile = (document, path, name) => {
161
+ return baseSaveToFile(document, path, ".phdm", name);
162
+ };
163
+ export const saveToFileHandle = (document, input) => {
164
+ return baseSaveToFileHandle(document, input);
165
+ };
166
+ export const loadFromFile = (path) => {
167
+ return baseLoadFromFile(path, reducer);
168
+ };
169
+ export const loadFromInput = (input) => {
170
+ return baseLoadFromInput(input, reducer);
171
+ };
172
+ const utils = {
173
+ fileExtension: ".phdm",
174
+ createState,
175
+ createDocument,
176
+ saveToFile,
177
+ saveToFileHandle,
178
+ loadFromFile,
179
+ loadFromInput,
180
+ };
181
+ export default utils;
@@ -0,0 +1,64 @@
1
+ import { type Action } from "document-model";
2
+ import type { AddWalletInput, RemoveWalletInput, AddBillingStatementInput, RemoveBillingStatementInput, AddLineItemInput, UpdateLineItemInput, RemoveLineItemInput, AddLineItemGroupInput, UpdateLineItemGroupInput, RemoveLineItemGroupInput, SetGroupTotalsInput, RemoveGroupTotalsInput, SetPeriodStartInput, SetPeriodEndInput, UpdateWalletInput } from "../types.js";
3
+ export type AddWalletAction = Action & {
4
+ type: "ADD_WALLET";
5
+ input: AddWalletInput;
6
+ };
7
+ export type RemoveWalletAction = Action & {
8
+ type: "REMOVE_WALLET";
9
+ input: RemoveWalletInput;
10
+ };
11
+ export type AddBillingStatementAction = Action & {
12
+ type: "ADD_BILLING_STATEMENT";
13
+ input: AddBillingStatementInput;
14
+ };
15
+ export type RemoveBillingStatementAction = Action & {
16
+ type: "REMOVE_BILLING_STATEMENT";
17
+ input: RemoveBillingStatementInput;
18
+ };
19
+ export type AddLineItemAction = Action & {
20
+ type: "ADD_LINE_ITEM";
21
+ input: AddLineItemInput;
22
+ };
23
+ export type UpdateLineItemAction = Action & {
24
+ type: "UPDATE_LINE_ITEM";
25
+ input: UpdateLineItemInput;
26
+ };
27
+ export type RemoveLineItemAction = Action & {
28
+ type: "REMOVE_LINE_ITEM";
29
+ input: RemoveLineItemInput;
30
+ };
31
+ export type AddLineItemGroupAction = Action & {
32
+ type: "ADD_LINE_ITEM_GROUP";
33
+ input: AddLineItemGroupInput;
34
+ };
35
+ export type UpdateLineItemGroupAction = Action & {
36
+ type: "UPDATE_LINE_ITEM_GROUP";
37
+ input: UpdateLineItemGroupInput;
38
+ };
39
+ export type RemoveLineItemGroupAction = Action & {
40
+ type: "REMOVE_LINE_ITEM_GROUP";
41
+ input: RemoveLineItemGroupInput;
42
+ };
43
+ export type SetGroupTotalsAction = Action & {
44
+ type: "SET_GROUP_TOTALS";
45
+ input: SetGroupTotalsInput;
46
+ };
47
+ export type RemoveGroupTotalsAction = Action & {
48
+ type: "REMOVE_GROUP_TOTALS";
49
+ input: RemoveGroupTotalsInput;
50
+ };
51
+ export type SetPeriodStartAction = Action & {
52
+ type: "SET_PERIOD_START";
53
+ input: SetPeriodStartInput;
54
+ };
55
+ export type SetPeriodEndAction = Action & {
56
+ type: "SET_PERIOD_END";
57
+ input: SetPeriodEndInput;
58
+ };
59
+ export type UpdateWalletAction = Action & {
60
+ type: "UPDATE_WALLET";
61
+ input: UpdateWalletInput;
62
+ };
63
+ export type ExpenseReportWalletAction = AddWalletAction | RemoveWalletAction | AddBillingStatementAction | RemoveBillingStatementAction | AddLineItemAction | UpdateLineItemAction | RemoveLineItemAction | AddLineItemGroupAction | UpdateLineItemGroupAction | RemoveLineItemGroupAction | SetGroupTotalsAction | RemoveGroupTotalsAction | SetPeriodStartAction | SetPeriodEndAction | UpdateWalletAction;
64
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/gen/wallet/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,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jC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IACxC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IACxC,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,eAAe,GACf,kBAAkB,GAClB,yBAAyB,GACzB,4BAA4B,GAC5B,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,sBAAsB,GACtB,yBAAyB,GACzB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type AddWalletInput, type RemoveWalletInput, type AddBillingStatementInput, type RemoveBillingStatementInput, type AddLineItemInput, type UpdateLineItemInput, type RemoveLineItemInput, type AddLineItemGroupInput, type UpdateLineItemGroupInput, type RemoveLineItemGroupInput, type SetGroupTotalsInput, type RemoveGroupTotalsInput, type SetPeriodStartInput, type SetPeriodEndInput, type UpdateWalletInput } from "../types.js";
2
+ import { type AddWalletAction, type RemoveWalletAction, type AddBillingStatementAction, type RemoveBillingStatementAction, type AddLineItemAction, type UpdateLineItemAction, type RemoveLineItemAction, type AddLineItemGroupAction, type UpdateLineItemGroupAction, type RemoveLineItemGroupAction, type SetGroupTotalsAction, type RemoveGroupTotalsAction, type SetPeriodStartAction, type SetPeriodEndAction, type UpdateWalletAction } from "./actions.js";
3
+ export declare const addWallet: (input: AddWalletInput) => AddWalletAction;
4
+ export declare const removeWallet: (input: RemoveWalletInput) => RemoveWalletAction;
5
+ export declare const addBillingStatement: (input: AddBillingStatementInput) => AddBillingStatementAction;
6
+ export declare const removeBillingStatement: (input: RemoveBillingStatementInput) => RemoveBillingStatementAction;
7
+ export declare const addLineItem: (input: AddLineItemInput) => AddLineItemAction;
8
+ export declare const updateLineItem: (input: UpdateLineItemInput) => UpdateLineItemAction;
9
+ export declare const removeLineItem: (input: RemoveLineItemInput) => RemoveLineItemAction;
10
+ export declare const addLineItemGroup: (input: AddLineItemGroupInput) => AddLineItemGroupAction;
11
+ export declare const updateLineItemGroup: (input: UpdateLineItemGroupInput) => UpdateLineItemGroupAction;
12
+ export declare const removeLineItemGroup: (input: RemoveLineItemGroupInput) => RemoveLineItemGroupAction;
13
+ export declare const setGroupTotals: (input: SetGroupTotalsInput) => SetGroupTotalsAction;
14
+ export declare const removeGroupTotals: (input: RemoveGroupTotalsInput) => RemoveGroupTotalsAction;
15
+ export declare const setPeriodStart: (input: SetPeriodStartInput) => SetPeriodStartAction;
16
+ export declare const setPeriodEnd: (input: SetPeriodEndInput) => SetPeriodEndAction;
17
+ export declare const updateWallet: (input: UpdateWalletInput) => UpdateWalletAction;
18
+ //# sourceMappingURL=creators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/gen/wallet/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAq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BAAsB,4BAO5D,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC;AAEJ,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,uBAOlD,CAAC;AAEJ,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,uBAOlD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { createAction } from "document-model";
2
+ import { z, } from "../types.js";
3
+ export const addWallet = (input) => createAction("ADD_WALLET", { ...input }, undefined, z.AddWalletInputSchema, "global");
4
+ export const removeWallet = (input) => createAction("REMOVE_WALLET", { ...input }, undefined, z.RemoveWalletInputSchema, "global");
5
+ export const addBillingStatement = (input) => createAction("ADD_BILLING_STATEMENT", { ...input }, undefined, z.AddBillingStatementInputSchema, "global");
6
+ export const removeBillingStatement = (input) => createAction("REMOVE_BILLING_STATEMENT", { ...input }, undefined, z.RemoveBillingStatementInputSchema, "global");
7
+ export const addLineItem = (input) => createAction("ADD_LINE_ITEM", { ...input }, undefined, z.AddLineItemInputSchema, "global");
8
+ export const updateLineItem = (input) => createAction("UPDATE_LINE_ITEM", { ...input }, undefined, z.UpdateLineItemInputSchema, "global");
9
+ export const removeLineItem = (input) => createAction("REMOVE_LINE_ITEM", { ...input }, undefined, z.RemoveLineItemInputSchema, "global");
10
+ export const addLineItemGroup = (input) => createAction("ADD_LINE_ITEM_GROUP", { ...input }, undefined, z.AddLineItemGroupInputSchema, "global");
11
+ export const updateLineItemGroup = (input) => createAction("UPDATE_LINE_ITEM_GROUP", { ...input }, undefined, z.UpdateLineItemGroupInputSchema, "global");
12
+ export const removeLineItemGroup = (input) => createAction("REMOVE_LINE_ITEM_GROUP", { ...input }, undefined, z.RemoveLineItemGroupInputSchema, "global");
13
+ export const setGroupTotals = (input) => createAction("SET_GROUP_TOTALS", { ...input }, undefined, z.SetGroupTotalsInputSchema, "global");
14
+ export const removeGroupTotals = (input) => createAction("REMOVE_GROUP_TOTALS", { ...input }, undefined, z.RemoveGroupTotalsInputSchema, "global");
15
+ export const setPeriodStart = (input) => createAction("SET_PERIOD_START", { ...input }, undefined, z.SetPeriodStartInputSchema, "global");
16
+ export const setPeriodEnd = (input) => createAction("SET_PERIOD_END", { ...input }, undefined, z.SetPeriodEndInputSchema, "global");
17
+ export const updateWallet = (input) => createAction("UPDATE_WALLET", { ...input }, undefined, z.UpdateWalletInputSchema, "global");
@@ -0,0 +1,2 @@
1
+ export declare const errors: {};
2
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/gen/wallet/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
@@ -0,0 +1 @@
1
+ export const errors = {};
@@ -0,0 +1,21 @@
1
+ import { BaseDocumentClass } from "document-model";
2
+ import { ExpenseReportPHState } from "../ph-factories.js";
3
+ import { type AddWalletInput, type RemoveWalletInput, type AddBillingStatementInput, type RemoveBillingStatementInput, type AddLineItemInput, type UpdateLineItemInput, type RemoveLineItemInput, type AddLineItemGroupInput, type UpdateLineItemGroupInput, type RemoveLineItemGroupInput, type SetGroupTotalsInput, type RemoveGroupTotalsInput, type SetPeriodStartInput, type SetPeriodEndInput, type UpdateWalletInput } from "../types.js";
4
+ export default class ExpenseReport_Wallet extends BaseDocumentClass<ExpenseReportPHState> {
5
+ addWallet(input: AddWalletInput): this;
6
+ removeWallet(input: RemoveWalletInput): this;
7
+ addBillingStatement(input: AddBillingStatementInput): this;
8
+ removeBillingStatement(input: RemoveBillingStatementInput): this;
9
+ addLineItem(input: AddLineItemInput): this;
10
+ updateLineItem(input: UpdateLineItemInput): this;
11
+ removeLineItem(input: RemoveLineItemInput): this;
12
+ addLineItemGroup(input: AddLineItemGroupInput): this;
13
+ updateLineItemGroup(input: UpdateLineItemGroupInput): this;
14
+ removeLineItemGroup(input: RemoveLineItemGroupInput): this;
15
+ setGroupTotals(input: SetGroupTotalsInput): this;
16
+ removeGroupTotals(input: RemoveGroupTotalsInput): this;
17
+ setPeriodStart(input: SetPeriodStartInput): this;
18
+ setPeriodEnd(input: SetPeriodEndInput): this;
19
+ updateWallet(input: UpdateWalletInput): this;
20
+ }
21
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/gen/wallet/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AAoBrB,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IAChF,SAAS,CAAC,KAAK,EAAE,cAAc;IAI/B,YAAY,CAAC,KAAK,EAAE,iBAAiB;IAIrC,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;IAInD,sBAAsB,CAAC,KAAK,EAAE,2BAA2B;IAIzD,WAAW,CAAC,KAAK,EAAE,gBAAgB;IAInC,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAIzC,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAIzC,gBAAgB,CAAC,KAAK,EAAE,qBAAqB;IAI7C,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;IAInD,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;IAInD,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAIzC,iBAAiB,CAAC,KAAK,EAAE,sBAAsB;IAI/C,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAIzC,YAAY,CAAC,KAAK,EAAE,iBAAiB;IAIrC,YAAY,CAAC,KAAK,EAAE,iBAAiB;CAG7C"}
@@ -0,0 +1,49 @@
1
+ import { BaseDocumentClass } from "document-model";
2
+ import { addWallet, removeWallet, addBillingStatement, removeBillingStatement, addLineItem, updateLineItem, removeLineItem, addLineItemGroup, updateLineItemGroup, removeLineItemGroup, setGroupTotals, removeGroupTotals, setPeriodStart, setPeriodEnd, updateWallet, } from "./creators.js";
3
+ export default class ExpenseReport_Wallet extends BaseDocumentClass {
4
+ addWallet(input) {
5
+ return this.dispatch(addWallet(input));
6
+ }
7
+ removeWallet(input) {
8
+ return this.dispatch(removeWallet(input));
9
+ }
10
+ addBillingStatement(input) {
11
+ return this.dispatch(addBillingStatement(input));
12
+ }
13
+ removeBillingStatement(input) {
14
+ return this.dispatch(removeBillingStatement(input));
15
+ }
16
+ addLineItem(input) {
17
+ return this.dispatch(addLineItem(input));
18
+ }
19
+ updateLineItem(input) {
20
+ return this.dispatch(updateLineItem(input));
21
+ }
22
+ removeLineItem(input) {
23
+ return this.dispatch(removeLineItem(input));
24
+ }
25
+ addLineItemGroup(input) {
26
+ return this.dispatch(addLineItemGroup(input));
27
+ }
28
+ updateLineItemGroup(input) {
29
+ return this.dispatch(updateLineItemGroup(input));
30
+ }
31
+ removeLineItemGroup(input) {
32
+ return this.dispatch(removeLineItemGroup(input));
33
+ }
34
+ setGroupTotals(input) {
35
+ return this.dispatch(setGroupTotals(input));
36
+ }
37
+ removeGroupTotals(input) {
38
+ return this.dispatch(removeGroupTotals(input));
39
+ }
40
+ setPeriodStart(input) {
41
+ return this.dispatch(setPeriodStart(input));
42
+ }
43
+ setPeriodEnd(input) {
44
+ return this.dispatch(setPeriodEnd(input));
45
+ }
46
+ updateWallet(input) {
47
+ return this.dispatch(updateWallet(input));
48
+ }
49
+ }
@@ -0,0 +1,21 @@
1
+ import { type SignalDispatch } from "document-model";
2
+ import { type AddWalletAction, type RemoveWalletAction, type AddBillingStatementAction, type RemoveBillingStatementAction, type AddLineItemAction, type UpdateLineItemAction, type RemoveLineItemAction, type AddLineItemGroupAction, type UpdateLineItemGroupAction, type RemoveLineItemGroupAction, type SetGroupTotalsAction, type RemoveGroupTotalsAction, type SetPeriodStartAction, type SetPeriodEndAction, type UpdateWalletAction } from "./actions.js";
3
+ import { type ExpenseReportState } from "../types.js";
4
+ export interface ExpenseReportWalletOperations {
5
+ addWalletOperation: (state: ExpenseReportState, action: AddWalletAction, dispatch?: SignalDispatch) => void;
6
+ removeWalletOperation: (state: ExpenseReportState, action: RemoveWalletAction, dispatch?: SignalDispatch) => void;
7
+ addBillingStatementOperation: (state: ExpenseReportState, action: AddBillingStatementAction, dispatch?: SignalDispatch) => void;
8
+ removeBillingStatementOperation: (state: ExpenseReportState, action: RemoveBillingStatementAction, dispatch?: SignalDispatch) => void;
9
+ addLineItemOperation: (state: ExpenseReportState, action: AddLineItemAction, dispatch?: SignalDispatch) => void;
10
+ updateLineItemOperation: (state: ExpenseReportState, action: UpdateLineItemAction, dispatch?: SignalDispatch) => void;
11
+ removeLineItemOperation: (state: ExpenseReportState, action: RemoveLineItemAction, dispatch?: SignalDispatch) => void;
12
+ addLineItemGroupOperation: (state: ExpenseReportState, action: AddLineItemGroupAction, dispatch?: SignalDispatch) => void;
13
+ updateLineItemGroupOperation: (state: ExpenseReportState, action: UpdateLineItemGroupAction, dispatch?: SignalDispatch) => void;
14
+ removeLineItemGroupOperation: (state: ExpenseReportState, action: RemoveLineItemGroupAction, dispatch?: SignalDispatch) => void;
15
+ setGroupTotalsOperation: (state: ExpenseReportState, action: SetGroupTotalsAction, dispatch?: SignalDispatch) => void;
16
+ removeGroupTotalsOperation: (state: ExpenseReportState, action: RemoveGroupTotalsAction, dispatch?: SignalDispatch) => void;
17
+ setPeriodStartOperation: (state: ExpenseReportState, action: SetPeriodStartAction, dispatch?: SignalDispatch) => void;
18
+ setPeriodEndOperation: (state: ExpenseReportState, action: SetPeriodEndAction, dispatch?: SignalDispatch) => void;
19
+ updateWalletOperation: (state: ExpenseReportState, action: UpdateWalletAction, dispatch?: SignalDispatch) => void;
20
+ }
21
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/gen/wallet/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,6BAA6B;IAC5C,kBAAkB,EAAE,CAClB,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,4BAA4B,EAAE,CAC5B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,yBAAyB,EACjC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,+BAA+B,EAAE,CAC/B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,4BAA4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1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This is a scaffold file meant for customization.
3
+ * Delete the file and run the code generator again to have it reset
4
+ */
5
+ import { type DocumentModelModule } from "document-model";
6
+ import { reducer } from "./gen/reducer.js";
7
+ import { documentModel } from "./gen/document-model.js";
8
+ import type { ExpenseReportPHState } from "./gen/ph-factories.js";
9
+ declare const utils: {
10
+ fileExtension: string;
11
+ createState: import("document-model").CreateState<ExpenseReportPHState>;
12
+ createDocument: import("document-model").CreateDocument<ExpenseReportPHState>;
13
+ saveToFile: (document: any, path: string, name?: string) => Promise<string>;
14
+ saveToFileHandle: (document: any, input: any) => Promise<void>;
15
+ loadFromFile: import("document-model").LoadFromFile<ExpenseReportPHState>;
16
+ loadFromInput: import("document-model").LoadFromInput<ExpenseReportPHState>;
17
+ };
18
+ declare const actions: {
19
+ addWallet: (input: import("./gen/index.js").AddWalletInput) => import("./gen/index.js").AddWalletAction;
20
+ removeWallet: (input: import("./gen/index.js").RemoveWalletInput) => import("./gen/index.js").RemoveWalletAction;
21
+ addBillingStatement: (input: import("./gen/index.js").AddBillingStatementInput) => import("./gen/index.js").AddBillingStatementAction;
22
+ removeBillingStatement: (input: import("./gen/index.js").RemoveBillingStatementInput) => import("./gen/index.js").RemoveBillingStatementAction;
23
+ addLineItem: (input: import("./gen/index.js").AddLineItemInput) => import("./gen/index.js").AddLineItemAction;
24
+ updateLineItem: (input: import("./gen/index.js").UpdateLineItemInput) => import("./gen/index.js").UpdateLineItemAction;
25
+ removeLineItem: (input: import("./gen/index.js").RemoveLineItemInput) => import("./gen/index.js").RemoveLineItemAction;
26
+ addLineItemGroup: (input: import("./gen/index.js").AddLineItemGroupInput) => import("./gen/index.js").AddLineItemGroupAction;
27
+ updateLineItemGroup: (input: import("./gen/index.js").UpdateLineItemGroupInput) => import("./gen/index.js").UpdateLineItemGroupAction;
28
+ removeLineItemGroup: (input: import("./gen/index.js").RemoveLineItemGroupInput) => import("./gen/index.js").RemoveLineItemGroupAction;
29
+ setGroupTotals: (input: import("./gen/index.js").SetGroupTotalsInput) => import("./gen/index.js").SetGroupTotalsAction;
30
+ removeGroupTotals: (input: import("./gen/index.js").RemoveGroupTotalsInput) => import("./gen/index.js").RemoveGroupTotalsAction;
31
+ setPeriodStart: (input: import("./gen/index.js").SetPeriodStartInput) => import("./gen/index.js").SetPeriodStartAction;
32
+ setPeriodEnd: (input: import("./gen/index.js").SetPeriodEndInput) => import("./gen/index.js").SetPeriodEndAction;
33
+ updateWallet: (input: import("./gen/index.js").UpdateWalletInput) => import("./gen/index.js").UpdateWalletAction;
34
+ };
35
+ export declare const module: DocumentModelModule<ExpenseReportPHState>;
36
+ export { reducer, actions, utils, documentModel };
37
+ export * from "./gen/types.js";
38
+ export * from "./src/utils.js";
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/expense-report/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,QAAA,MAAM,KAAK;;;;;;;;CAAkC,CAAC;AAC9C,QAAA,MAAM,OAAO;gBAaiI,8CAAqB;mBAAsK,iDAAwB;0BAAsL,wDAA+B;6BAA+M,2DAAkC;kBAA6M,gDAAuB;qBAA+K,mDAA0B;qBAAwL,mDAA0B;uBAA0L,qDAA4B;0BAAoM,wDAA+B;0BAA6M,wDAA+B;qBAAwM,mDAA0B;wBAA2L,sDAA6B;qBAAiM,mDAA0B;mBAAsL,iDAAwB;mBAAgL,iDAAwB;CAb3jG,CAAC;AAE5D,eAAO,MAAM,MAAM,EAAE,mBAAmB,CAAC,oBAAoB,CAK5D,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AAElD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This is a scaffold file meant for customization.
3
+ * Delete the file and run the code generator again to have it reset
4
+ */
5
+ import { actions as BaseActions, } from "document-model";
6
+ import { actions as ExpenseReportActions } from "./gen/index.js";
7
+ import { reducer } from "./gen/reducer.js";
8
+ import { documentModel } from "./gen/document-model.js";
9
+ import genUtils from "./gen/utils.js";
10
+ import * as customUtils from "./src/utils.js";
11
+ const utils = { ...genUtils, ...customUtils };
12
+ const actions = { ...BaseActions, ...ExpenseReportActions };
13
+ export const module = {
14
+ reducer,
15
+ actions,
16
+ utils,
17
+ documentModel,
18
+ };
19
+ export { reducer, actions, utils, documentModel };
20
+ export * from "./gen/types.js";
21
+ export * from "./src/utils.js";
@@ -0,0 +1,3 @@
1
+ import type { ExpenseReportWalletOperations } from "../../gen/wallet/operations.js";
2
+ export declare const reducer: ExpenseReportWalletOperations;
3
+ //# sourceMappingURL=wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../../../document-models/expense-report/src/reducers/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAEpF,eAAO,MAAM,OAAO,EAAE,6BA4NrB,CAAC"}