@happyvertical/smrt-expenses 0.61.2 → 0.61.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.
- package/dist/chunks/{ExpenseReceiptCollection-CaVPOnIl.js → ExpenseReceiptCollection-B-ESJn1g.js} +8 -3
- package/dist/chunks/ExpenseReceiptCollection-B-ESJn1g.js.map +1 -0
- package/dist/chunks/{expense-actions-B6A8fu37.js → expense-actions-C_Y7CrnB.js} +2 -2
- package/dist/chunks/{expense-actions-B6A8fu37.js.map → expense-actions-C_Y7CrnB.js.map} +1 -1
- package/dist/expense-allocation.d.ts.map +1 -1
- package/dist/index.js +21 -16
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2607 -2275
- package/dist/models/ExpenseAllocation.d.ts +2 -2
- package/dist/models/ExpenseAllocation.d.ts.map +1 -1
- package/dist/models/ExpenseReceipt.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +1032 -1030
- package/package.json +9 -9
- package/dist/chunks/ExpenseReceiptCollection-CaVPOnIl.js.map +0 -1
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-expenses",
|
|
6
|
-
"packageVersion": "0.61.
|
|
6
|
+
"packageVersion": "0.61.4",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "afad77cb1b50517c6a6a2e0bca117efddb4ff6f15635166af2a22fc5361694e0",
|
|
11
|
+
"packageJson": "49ab2e483e8396e36dfcd45120ff172ec52195a7fd84865e9da9d3efa0ffc969",
|
|
12
12
|
"agents": "f96ada94beee4b368ed32ff1fb334675fd4df19ad350583ddaff2fc47174cd3d",
|
|
13
13
|
"moduleDoc:agents/reviewed-allocations.md": "0bae765eb23d8aedd07c9f3106d5012d31ab19114c5506240cad53f14a244fea",
|
|
14
14
|
"moduleDoc:agents/financial-facts-test-matrix.md": "77396f7345bb43a35b412bee579f1e457b58e99561bfdc3e5dc30d28ea07d824",
|
|
@@ -66,883 +66,620 @@
|
|
|
66
66
|
],
|
|
67
67
|
"objects": [
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"qualifiedName": "@happyvertical/smrt-expenses:
|
|
71
|
-
"collection": "
|
|
72
|
-
"description": "
|
|
73
|
-
"tableName": "
|
|
69
|
+
"name": "ExpenseAllocationRevision",
|
|
70
|
+
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseAllocationRevision",
|
|
71
|
+
"collection": "expenseallocationrevisions",
|
|
72
|
+
"description": "Persisted command-owned ExpenseAllocationRevision evidence.",
|
|
73
|
+
"tableName": "expense_allocation_revisions",
|
|
74
74
|
"packageName": "@happyvertical/smrt-expenses",
|
|
75
|
-
"extends": "
|
|
76
|
-
"fields": [
|
|
77
|
-
"relationships": [],
|
|
78
|
-
"methods": [
|
|
79
|
-
"attachReceipt",
|
|
80
|
-
"commitmentPosition",
|
|
81
|
-
"completeSupplierPayableBasis",
|
|
82
|
-
"forCostObject",
|
|
83
|
-
"listReviewedTaxFacts",
|
|
84
|
-
"record",
|
|
85
|
-
"recordReimbursement",
|
|
86
|
-
"recordReview",
|
|
87
|
-
"recordSupplierPayable",
|
|
88
|
-
"recordSupplierPayableEvent",
|
|
89
|
-
"refundPosition",
|
|
90
|
-
"reimbursementPosition",
|
|
91
|
-
"reviewAllocation",
|
|
92
|
-
"supplierPayablePosition",
|
|
93
|
-
"totalsByCurrency",
|
|
94
|
-
"withdrawAllocation"
|
|
95
|
-
],
|
|
96
|
-
"methodSignatures": [
|
|
75
|
+
"extends": "SmrtObject",
|
|
76
|
+
"fields": [
|
|
97
77
|
{
|
|
98
|
-
"name": "
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"returns": "Promise<ExpenseReceipt>"
|
|
78
|
+
"name": "kind",
|
|
79
|
+
"type": "text",
|
|
80
|
+
"required": false,
|
|
81
|
+
"columnType": "TEXT",
|
|
82
|
+
"default": "allocation"
|
|
104
83
|
},
|
|
105
84
|
{
|
|
106
|
-
"name": "
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
"options?: object"
|
|
111
|
-
],
|
|
112
|
-
"returns": "Promise<CommitmentPosition>"
|
|
85
|
+
"name": "sourceCostObjectType",
|
|
86
|
+
"type": "text",
|
|
87
|
+
"required": false,
|
|
88
|
+
"columnType": "TEXT"
|
|
113
89
|
},
|
|
114
90
|
{
|
|
115
|
-
"name": "
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
"input: CompleteSupplierPayableBasisInput"
|
|
120
|
-
],
|
|
121
|
-
"returns": "Promise<SupplierPayablePosition>"
|
|
91
|
+
"name": "sourceCostObjectId",
|
|
92
|
+
"type": "text",
|
|
93
|
+
"required": false,
|
|
94
|
+
"columnType": "TEXT"
|
|
122
95
|
},
|
|
123
96
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
"costObjectId: string"
|
|
129
|
-
],
|
|
130
|
-
"returns": "Promise<Expense[]>"
|
|
97
|
+
"name": "incurredOn",
|
|
98
|
+
"type": "text",
|
|
99
|
+
"required": false,
|
|
100
|
+
"columnType": "TEXT"
|
|
131
101
|
},
|
|
132
102
|
{
|
|
133
|
-
"name": "
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"returns": "Promise<ReviewedExpenseTaxFact[]>"
|
|
103
|
+
"name": "paidBy",
|
|
104
|
+
"type": "text",
|
|
105
|
+
"required": false,
|
|
106
|
+
"columnType": "TEXT",
|
|
107
|
+
"default": "company"
|
|
139
108
|
},
|
|
140
109
|
{
|
|
141
|
-
"name": "
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"returns": "Promise<Expense>"
|
|
110
|
+
"name": "reimbursable",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"required": true,
|
|
113
|
+
"columnType": "BOOLEAN",
|
|
114
|
+
"default": false
|
|
147
115
|
},
|
|
148
116
|
{
|
|
149
|
-
"name": "
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
],
|
|
154
|
-
"returns": "Promise<Expense>"
|
|
117
|
+
"name": "hasSupplierTax",
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"required": false,
|
|
120
|
+
"columnType": "BOOLEAN"
|
|
155
121
|
},
|
|
156
122
|
{
|
|
157
|
-
"name": "
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"returns": "Promise<Expense>"
|
|
123
|
+
"name": "basisEqualsGross",
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"required": true,
|
|
126
|
+
"columnType": "BOOLEAN",
|
|
127
|
+
"default": false
|
|
163
128
|
},
|
|
164
129
|
{
|
|
165
|
-
"name": "
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
"input: RecordSupplierPayableInput"
|
|
170
|
-
],
|
|
171
|
-
"returns": "Promise<SupplierPayablePosition>"
|
|
130
|
+
"name": "tenantId",
|
|
131
|
+
"type": "text",
|
|
132
|
+
"required": true,
|
|
133
|
+
"columnType": "UUID"
|
|
172
134
|
},
|
|
173
135
|
{
|
|
174
|
-
"name": "
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
],
|
|
180
|
-
"returns": "Promise<SupplierPayablePosition>"
|
|
136
|
+
"name": "sourceExpenseId",
|
|
137
|
+
"type": "foreignKey",
|
|
138
|
+
"required": true,
|
|
139
|
+
"related": "Expense",
|
|
140
|
+
"columnType": "UUID"
|
|
181
141
|
},
|
|
182
142
|
{
|
|
183
|
-
"name": "
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"returns": "Promise<ExpenseRefundPosition>"
|
|
143
|
+
"name": "previousRevisionId",
|
|
144
|
+
"type": "foreignKey",
|
|
145
|
+
"required": false,
|
|
146
|
+
"related": "ExpenseAllocationRevision",
|
|
147
|
+
"columnType": "UUID"
|
|
189
148
|
},
|
|
190
149
|
{
|
|
191
|
-
"name": "
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
|
|
195
|
-
],
|
|
196
|
-
"returns": "Promise<ExpenseReimbursementPosition>"
|
|
150
|
+
"name": "requestId",
|
|
151
|
+
"type": "text",
|
|
152
|
+
"required": false,
|
|
153
|
+
"columnType": "TEXT"
|
|
197
154
|
},
|
|
198
155
|
{
|
|
199
|
-
"name": "
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
"authority: ExpenseAllocationAuthority"
|
|
204
|
-
],
|
|
205
|
-
"returns": "Promise<ExpenseAllocationResult>"
|
|
156
|
+
"name": "requestFingerprint",
|
|
157
|
+
"type": "text",
|
|
158
|
+
"required": false,
|
|
159
|
+
"columnType": "TEXT"
|
|
206
160
|
},
|
|
207
161
|
{
|
|
208
|
-
"name": "
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
"input?: object"
|
|
213
|
-
],
|
|
214
|
-
"returns": "Promise<SupplierPayablePosition | null>"
|
|
162
|
+
"name": "sourceFingerprint",
|
|
163
|
+
"type": "text",
|
|
164
|
+
"required": false,
|
|
165
|
+
"columnType": "TEXT"
|
|
215
166
|
},
|
|
216
167
|
{
|
|
217
|
-
"name": "
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
],
|
|
222
|
-
"returns": "Promise<CurrencyTotals>"
|
|
168
|
+
"name": "sourceFingerprintNonce",
|
|
169
|
+
"type": "text",
|
|
170
|
+
"required": false,
|
|
171
|
+
"columnType": "TEXT"
|
|
223
172
|
},
|
|
224
173
|
{
|
|
225
|
-
"name": "
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
|
|
229
|
-
"authority: ExpenseAllocationAuthority"
|
|
230
|
-
],
|
|
231
|
-
"returns": "Promise<WithdrawExpenseAllocationResult>"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"surfaces": [
|
|
235
|
-
{
|
|
236
|
-
"kind": "api",
|
|
237
|
-
"name": "expenses.record",
|
|
238
|
-
"operation": "record",
|
|
239
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
240
|
-
"path": "/expenses/record",
|
|
241
|
-
"method": "POST"
|
|
174
|
+
"name": "sourceRevision",
|
|
175
|
+
"type": "text",
|
|
176
|
+
"required": false,
|
|
177
|
+
"columnType": "TEXT"
|
|
242
178
|
},
|
|
243
179
|
{
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"path": "/expenses/attachReceipt",
|
|
249
|
-
"method": "POST"
|
|
180
|
+
"name": "amountMinor",
|
|
181
|
+
"type": "integer",
|
|
182
|
+
"required": false,
|
|
183
|
+
"columnType": "INTEGER"
|
|
250
184
|
},
|
|
251
185
|
{
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"path": "/expenses/recordReview",
|
|
257
|
-
"method": "POST"
|
|
186
|
+
"name": "currency",
|
|
187
|
+
"type": "text",
|
|
188
|
+
"required": false,
|
|
189
|
+
"columnType": "TEXT"
|
|
258
190
|
},
|
|
259
191
|
{
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
"withheldSurfaces": [
|
|
192
|
+
"name": "reviewedByProfileId",
|
|
193
|
+
"type": "crossPackageRef",
|
|
194
|
+
"required": false,
|
|
195
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
196
|
+
"columnType": "UUID"
|
|
197
|
+
},
|
|
269
198
|
{
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"kind": "api",
|
|
278
|
-
"operation": "completeSupplierPayableBasis",
|
|
279
|
-
"code": "not-included",
|
|
280
|
-
"reason": "not listed in api.include",
|
|
281
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"kind": "api",
|
|
285
|
-
"operation": "forCostObject",
|
|
286
|
-
"code": "not-included",
|
|
287
|
-
"reason": "not listed in api.include",
|
|
288
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"kind": "api",
|
|
292
|
-
"operation": "listReviewedTaxFacts",
|
|
293
|
-
"code": "not-included",
|
|
294
|
-
"reason": "not listed in api.include",
|
|
295
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"kind": "api",
|
|
299
|
-
"operation": "recordSupplierPayable",
|
|
300
|
-
"code": "not-included",
|
|
301
|
-
"reason": "not listed in api.include",
|
|
302
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"kind": "api",
|
|
306
|
-
"operation": "recordSupplierPayableEvent",
|
|
307
|
-
"code": "not-included",
|
|
308
|
-
"reason": "not listed in api.include",
|
|
309
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"kind": "api",
|
|
313
|
-
"operation": "refundPosition",
|
|
314
|
-
"code": "not-included",
|
|
315
|
-
"reason": "not listed in api.include",
|
|
316
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
199
|
+
"name": "reviewedByUserId",
|
|
200
|
+
"type": "crossPackageRef",
|
|
201
|
+
"required": false,
|
|
202
|
+
"related": "@happyvertical/smrt-users:User",
|
|
203
|
+
"columnType": "UUID"
|
|
317
204
|
},
|
|
318
205
|
{
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
|
|
206
|
+
"name": "reviewEvidence",
|
|
207
|
+
"type": "text",
|
|
208
|
+
"required": false,
|
|
209
|
+
"columnType": "TEXT"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"relationships": [
|
|
325
213
|
{
|
|
326
|
-
"
|
|
327
|
-
"
|
|
328
|
-
"
|
|
329
|
-
"
|
|
330
|
-
"
|
|
214
|
+
"name": "sourceExpenseId",
|
|
215
|
+
"type": "foreignKey",
|
|
216
|
+
"required": true,
|
|
217
|
+
"related": "Expense",
|
|
218
|
+
"columnType": "UUID"
|
|
331
219
|
},
|
|
332
220
|
{
|
|
333
|
-
"
|
|
334
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"
|
|
221
|
+
"name": "previousRevisionId",
|
|
222
|
+
"type": "foreignKey",
|
|
223
|
+
"required": false,
|
|
224
|
+
"related": "ExpenseAllocationRevision",
|
|
225
|
+
"columnType": "UUID"
|
|
338
226
|
},
|
|
339
227
|
{
|
|
340
|
-
"
|
|
341
|
-
"
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
228
|
+
"name": "reviewedByProfileId",
|
|
229
|
+
"type": "crossPackageRef",
|
|
230
|
+
"required": false,
|
|
231
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
232
|
+
"columnType": "UUID"
|
|
345
233
|
},
|
|
346
234
|
{
|
|
347
|
-
"
|
|
348
|
-
"
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
235
|
+
"name": "reviewedByUserId",
|
|
236
|
+
"type": "crossPackageRef",
|
|
237
|
+
"required": false,
|
|
238
|
+
"related": "@happyvertical/smrt-users:User",
|
|
239
|
+
"columnType": "UUID"
|
|
352
240
|
}
|
|
353
241
|
],
|
|
354
|
-
"relationshipFeatures": [
|
|
355
|
-
"uuidColumns"
|
|
356
|
-
],
|
|
357
|
-
"tags": [],
|
|
358
|
-
"risks": []
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"name": "ExpenseReceiptCollection",
|
|
362
|
-
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection",
|
|
363
|
-
"collection": "expensereceipts",
|
|
364
|
-
"description": "Junction collection over expense_receipts (left: expense, right: asset). Reads go through the normal tenant interceptors.",
|
|
365
|
-
"tableName": "expense_receipts",
|
|
366
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
367
|
-
"extends": "SmrtJunction",
|
|
368
|
-
"fields": [],
|
|
369
|
-
"relationships": [],
|
|
370
242
|
"methods": [
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"byLeft",
|
|
374
|
-
"byRight",
|
|
375
|
-
"detach",
|
|
376
|
-
"findDuplicateReceipts",
|
|
377
|
-
"receiptsFor",
|
|
378
|
-
"setLinks"
|
|
243
|
+
"delete",
|
|
244
|
+
"save"
|
|
379
245
|
],
|
|
380
246
|
"methodSignatures": [
|
|
381
247
|
{
|
|
382
|
-
"name": "
|
|
383
|
-
"async": true,
|
|
384
|
-
"params": [
|
|
385
|
-
"_expenseId: string",
|
|
386
|
-
"_assetId: string",
|
|
387
|
-
"_opts?: JunctionAttachOptions"
|
|
388
|
-
],
|
|
389
|
-
"returns": "Promise<ExpenseReceipt>"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
"name": "attachReceipt",
|
|
393
|
-
"async": true,
|
|
394
|
-
"params": [
|
|
395
|
-
"input: AttachReceiptInput"
|
|
396
|
-
],
|
|
397
|
-
"returns": "Promise<ExpenseReceipt>"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"name": "byLeft",
|
|
401
|
-
"async": true,
|
|
402
|
-
"params": [
|
|
403
|
-
"leftId: string",
|
|
404
|
-
"opts?: JunctionFilterOptions"
|
|
405
|
-
],
|
|
406
|
-
"returns": "Promise<TItem[]>"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"name": "byRight",
|
|
410
|
-
"async": true,
|
|
411
|
-
"params": [
|
|
412
|
-
"rightId: string",
|
|
413
|
-
"opts?: JunctionFilterOptions"
|
|
414
|
-
],
|
|
415
|
-
"returns": "Promise<TItem[]>"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"name": "detach",
|
|
248
|
+
"name": "delete",
|
|
419
249
|
"async": true,
|
|
420
|
-
"params": [
|
|
421
|
-
"leftId: string",
|
|
422
|
-
"rightId: string",
|
|
423
|
-
"opts?: JunctionFilterOptions"
|
|
424
|
-
],
|
|
425
250
|
"returns": "Promise<void>"
|
|
426
251
|
},
|
|
427
252
|
{
|
|
428
|
-
"name": "
|
|
429
|
-
"async": true,
|
|
430
|
-
"params": [
|
|
431
|
-
"options?: FindDuplicateReceiptsOptions"
|
|
432
|
-
],
|
|
433
|
-
"returns": "Promise<DuplicateReceiptGroup[]>"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "receiptsFor",
|
|
437
|
-
"async": true,
|
|
438
|
-
"params": [
|
|
439
|
-
"expenseId: string"
|
|
440
|
-
],
|
|
441
|
-
"returns": "Promise<ExpenseReceipt[]>"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"name": "setLinks",
|
|
253
|
+
"name": "save",
|
|
445
254
|
"async": true,
|
|
446
255
|
"params": [
|
|
447
|
-
"
|
|
448
|
-
"_assetIds: string[]",
|
|
449
|
-
"_opts?: JunctionAttachOptions"
|
|
256
|
+
"options?: SmrtSaveOptions"
|
|
450
257
|
],
|
|
451
|
-
"returns": "Promise<
|
|
452
|
-
}
|
|
453
|
-
],
|
|
454
|
-
"surfaces": [],
|
|
455
|
-
"withheldSurfaces": [
|
|
456
|
-
{
|
|
457
|
-
"kind": "api",
|
|
458
|
-
"operation": "attach",
|
|
459
|
-
"code": "not-included",
|
|
460
|
-
"reason": "not listed in api.include",
|
|
461
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"kind": "api",
|
|
465
|
-
"operation": "attachReceipt",
|
|
466
|
-
"code": "not-included",
|
|
467
|
-
"reason": "not listed in api.include",
|
|
468
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"kind": "api",
|
|
472
|
-
"operation": "byLeft",
|
|
473
|
-
"code": "not-included",
|
|
474
|
-
"reason": "not listed in api.include",
|
|
475
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"kind": "api",
|
|
479
|
-
"operation": "byRight",
|
|
480
|
-
"code": "not-included",
|
|
481
|
-
"reason": "not listed in api.include",
|
|
482
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"kind": "api",
|
|
486
|
-
"operation": "detach",
|
|
487
|
-
"code": "not-included",
|
|
488
|
-
"reason": "not listed in api.include",
|
|
489
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"kind": "api",
|
|
493
|
-
"operation": "findDuplicateReceipts",
|
|
494
|
-
"code": "not-included",
|
|
495
|
-
"reason": "not listed in api.include",
|
|
496
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"kind": "api",
|
|
500
|
-
"operation": "receiptsFor",
|
|
501
|
-
"code": "not-included",
|
|
502
|
-
"reason": "not listed in api.include",
|
|
503
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"kind": "api",
|
|
507
|
-
"operation": "setLinks",
|
|
508
|
-
"code": "not-included",
|
|
509
|
-
"reason": "not listed in api.include",
|
|
510
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
258
|
+
"returns": "Promise<this>"
|
|
511
259
|
}
|
|
512
260
|
],
|
|
513
|
-
"
|
|
514
|
-
"
|
|
515
|
-
"
|
|
261
|
+
"tenant": {
|
|
262
|
+
"scoped": true,
|
|
263
|
+
"mode": "required",
|
|
264
|
+
"field": "tenantId"
|
|
265
|
+
},
|
|
266
|
+
"conflictColumns": [
|
|
267
|
+
"tenant_id",
|
|
268
|
+
"slug",
|
|
269
|
+
"context"
|
|
516
270
|
],
|
|
517
|
-
"tags": [],
|
|
518
|
-
"risks": []
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"name": "Revisions",
|
|
522
|
-
"qualifiedName": "@happyvertical/smrt-expenses:Revisions",
|
|
523
|
-
"collection": "expenseallocationrevisions",
|
|
524
|
-
"tableName": "expense_allocation_revisions",
|
|
525
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
526
|
-
"extends": "SmrtCollection",
|
|
527
|
-
"fields": [],
|
|
528
|
-
"relationships": [],
|
|
529
|
-
"methods": [],
|
|
530
271
|
"surfaces": [],
|
|
272
|
+
"withheldSurfaces": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "api",
|
|
275
|
+
"operation": "save",
|
|
276
|
+
"code": "lifecycle-method",
|
|
277
|
+
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
278
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseAllocationRevision"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
531
281
|
"relationshipFeatures": [
|
|
282
|
+
"crossPackageRef",
|
|
283
|
+
"foreignKey",
|
|
532
284
|
"uuidColumns"
|
|
533
285
|
],
|
|
534
286
|
"tags": [],
|
|
535
287
|
"risks": []
|
|
536
288
|
},
|
|
537
289
|
{
|
|
538
|
-
"name": "
|
|
539
|
-
"qualifiedName": "@happyvertical/smrt-expenses:
|
|
290
|
+
"name": "ExpenseAllocationPortion",
|
|
291
|
+
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseAllocationPortion",
|
|
540
292
|
"collection": "expenseallocationportions",
|
|
293
|
+
"description": "Persisted command-owned ExpenseAllocationPortion evidence.",
|
|
541
294
|
"tableName": "expense_allocation_portions",
|
|
542
295
|
"packageName": "@happyvertical/smrt-expenses",
|
|
543
|
-
"extends": "SmrtCollection",
|
|
544
|
-
"fields": [],
|
|
545
|
-
"relationships": [],
|
|
546
|
-
"methods": [],
|
|
547
|
-
"surfaces": [],
|
|
548
|
-
"relationshipFeatures": [
|
|
549
|
-
"uuidColumns"
|
|
550
|
-
],
|
|
551
|
-
"tags": [],
|
|
552
|
-
"risks": []
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"name": "Billings",
|
|
556
|
-
"qualifiedName": "@happyvertical/smrt-expenses:Billings",
|
|
557
|
-
"collection": "expenseallocationbillings",
|
|
558
|
-
"tableName": "expense_allocation_billings",
|
|
559
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
560
|
-
"extends": "SmrtCollection",
|
|
561
|
-
"fields": [],
|
|
562
|
-
"relationships": [],
|
|
563
|
-
"methods": [],
|
|
564
|
-
"surfaces": [],
|
|
565
|
-
"relationshipFeatures": [
|
|
566
|
-
"uuidColumns"
|
|
567
|
-
],
|
|
568
|
-
"tags": [],
|
|
569
|
-
"risks": []
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"name": "Expense",
|
|
573
|
-
"qualifiedName": "@happyvertical/smrt-expenses:Expense",
|
|
574
|
-
"collection": "expenses",
|
|
575
|
-
"description": "A cost someone incurred.",
|
|
576
|
-
"tableName": "expenses",
|
|
577
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
578
296
|
"extends": "SmrtObject",
|
|
579
297
|
"fields": [
|
|
580
298
|
{
|
|
581
299
|
"name": "tenantId",
|
|
582
300
|
"type": "text",
|
|
583
|
-
"required":
|
|
301
|
+
"required": true,
|
|
584
302
|
"columnType": "UUID"
|
|
585
303
|
},
|
|
586
304
|
{
|
|
587
|
-
"name": "
|
|
588
|
-
"type": "
|
|
589
|
-
"required":
|
|
590
|
-
"
|
|
305
|
+
"name": "sourceExpenseId",
|
|
306
|
+
"type": "foreignKey",
|
|
307
|
+
"required": true,
|
|
308
|
+
"related": "Expense",
|
|
309
|
+
"columnType": "UUID"
|
|
591
310
|
},
|
|
592
311
|
{
|
|
593
|
-
"name": "
|
|
594
|
-
"type": "
|
|
595
|
-
"required":
|
|
596
|
-
"
|
|
312
|
+
"name": "revisionId",
|
|
313
|
+
"type": "foreignKey",
|
|
314
|
+
"required": true,
|
|
315
|
+
"related": "ExpenseAllocationRevision",
|
|
316
|
+
"columnType": "UUID"
|
|
597
317
|
},
|
|
598
318
|
{
|
|
599
|
-
"name": "
|
|
319
|
+
"name": "portionKey",
|
|
600
320
|
"type": "text",
|
|
601
321
|
"required": false,
|
|
602
322
|
"columnType": "TEXT"
|
|
603
323
|
},
|
|
604
324
|
{
|
|
605
|
-
"name": "
|
|
325
|
+
"name": "costObjectType",
|
|
606
326
|
"type": "text",
|
|
607
327
|
"required": false,
|
|
608
328
|
"columnType": "TEXT"
|
|
609
329
|
},
|
|
610
330
|
{
|
|
611
|
-
"name": "
|
|
612
|
-
"type": "integer",
|
|
613
|
-
"required": false,
|
|
614
|
-
"columnType": "INTEGER"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"name": "currency",
|
|
331
|
+
"name": "costObjectId",
|
|
618
332
|
"type": "text",
|
|
619
333
|
"required": false,
|
|
620
334
|
"columnType": "TEXT"
|
|
621
335
|
},
|
|
622
336
|
{
|
|
623
|
-
"name": "
|
|
337
|
+
"name": "costCodeRef",
|
|
624
338
|
"type": "text",
|
|
625
339
|
"required": false,
|
|
626
340
|
"columnType": "TEXT"
|
|
627
341
|
},
|
|
628
342
|
{
|
|
629
|
-
"name": "
|
|
630
|
-
"type": "
|
|
343
|
+
"name": "amountMinor",
|
|
344
|
+
"type": "integer",
|
|
631
345
|
"required": false,
|
|
632
|
-
"columnType": "
|
|
633
|
-
"readonly": true
|
|
346
|
+
"columnType": "INTEGER"
|
|
634
347
|
},
|
|
635
348
|
{
|
|
636
|
-
"name": "
|
|
349
|
+
"name": "currency",
|
|
637
350
|
"type": "text",
|
|
638
351
|
"required": false,
|
|
639
352
|
"columnType": "TEXT"
|
|
640
|
-
}
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"relationships": [
|
|
641
356
|
{
|
|
642
|
-
"name": "
|
|
357
|
+
"name": "sourceExpenseId",
|
|
643
358
|
"type": "foreignKey",
|
|
644
|
-
"required":
|
|
359
|
+
"required": true,
|
|
645
360
|
"related": "Expense",
|
|
646
361
|
"columnType": "UUID"
|
|
647
362
|
},
|
|
648
363
|
{
|
|
649
|
-
"name": "
|
|
650
|
-
"type": "
|
|
651
|
-
"required":
|
|
652
|
-
"
|
|
653
|
-
|
|
364
|
+
"name": "revisionId",
|
|
365
|
+
"type": "foreignKey",
|
|
366
|
+
"required": true,
|
|
367
|
+
"related": "ExpenseAllocationRevision",
|
|
368
|
+
"columnType": "UUID"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"methods": [
|
|
372
|
+
"delete",
|
|
373
|
+
"save"
|
|
374
|
+
],
|
|
375
|
+
"methodSignatures": [
|
|
654
376
|
{
|
|
655
|
-
"name": "
|
|
656
|
-
"
|
|
657
|
-
"
|
|
658
|
-
"columnType": "TEXT"
|
|
377
|
+
"name": "delete",
|
|
378
|
+
"async": true,
|
|
379
|
+
"returns": "Promise<void>"
|
|
659
380
|
},
|
|
660
381
|
{
|
|
661
|
-
"name": "
|
|
662
|
-
"
|
|
663
|
-
"
|
|
664
|
-
|
|
665
|
-
|
|
382
|
+
"name": "save",
|
|
383
|
+
"async": true,
|
|
384
|
+
"params": [
|
|
385
|
+
"options?: SmrtSaveOptions"
|
|
386
|
+
],
|
|
387
|
+
"returns": "Promise<this>"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"tenant": {
|
|
391
|
+
"scoped": true,
|
|
392
|
+
"mode": "required",
|
|
393
|
+
"field": "tenantId"
|
|
394
|
+
},
|
|
395
|
+
"conflictColumns": [
|
|
396
|
+
"tenant_id",
|
|
397
|
+
"slug",
|
|
398
|
+
"context"
|
|
399
|
+
],
|
|
400
|
+
"surfaces": [],
|
|
401
|
+
"withheldSurfaces": [
|
|
666
402
|
{
|
|
667
|
-
"
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"
|
|
672
|
-
}
|
|
403
|
+
"kind": "api",
|
|
404
|
+
"operation": "save",
|
|
405
|
+
"code": "lifecycle-method",
|
|
406
|
+
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
407
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseAllocationPortion"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"relationshipFeatures": [
|
|
411
|
+
"foreignKey",
|
|
412
|
+
"uuidColumns"
|
|
413
|
+
],
|
|
414
|
+
"tags": [],
|
|
415
|
+
"risks": []
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "ExpenseAllocationBilling",
|
|
419
|
+
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseAllocationBilling",
|
|
420
|
+
"collection": "expenseallocationbillings",
|
|
421
|
+
"description": "Persisted command-owned ExpenseAllocationBilling evidence.",
|
|
422
|
+
"tableName": "expense_allocation_billings",
|
|
423
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
424
|
+
"extends": "SmrtObject",
|
|
425
|
+
"fields": [
|
|
673
426
|
{
|
|
674
|
-
"name": "
|
|
427
|
+
"name": "tenantId",
|
|
675
428
|
"type": "text",
|
|
676
|
-
"required":
|
|
677
|
-
"columnType": "TEXT"
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
"name": "paidByProfileId",
|
|
681
|
-
"type": "crossPackageRef",
|
|
682
|
-
"required": false,
|
|
683
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
684
|
-
"columnType": "UUID"
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"name": "vendorId",
|
|
688
|
-
"type": "crossPackageRef",
|
|
689
|
-
"required": false,
|
|
690
|
-
"related": "@happyvertical/smrt-commerce:Vendor",
|
|
429
|
+
"required": true,
|
|
691
430
|
"columnType": "UUID"
|
|
692
431
|
},
|
|
693
432
|
{
|
|
694
|
-
"name": "
|
|
695
|
-
"type": "
|
|
696
|
-
"required":
|
|
697
|
-
"related": "
|
|
433
|
+
"name": "sourceExpenseId",
|
|
434
|
+
"type": "foreignKey",
|
|
435
|
+
"required": true,
|
|
436
|
+
"related": "Expense",
|
|
698
437
|
"columnType": "UUID"
|
|
699
438
|
},
|
|
700
439
|
{
|
|
701
|
-
"name": "
|
|
702
|
-
"type": "
|
|
703
|
-
"required":
|
|
704
|
-
"related": "
|
|
440
|
+
"name": "portionId",
|
|
441
|
+
"type": "foreignKey",
|
|
442
|
+
"required": true,
|
|
443
|
+
"related": "ExpenseAllocationPortion",
|
|
705
444
|
"columnType": "UUID"
|
|
706
445
|
},
|
|
707
446
|
{
|
|
708
|
-
"name": "
|
|
709
|
-
"type": "text",
|
|
710
|
-
"required": false,
|
|
711
|
-
"columnType": "TEXT",
|
|
712
|
-
"readonly": true
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"name": "reviewedByProfileId",
|
|
447
|
+
"name": "invoiceId",
|
|
716
448
|
"type": "crossPackageRef",
|
|
717
449
|
"required": false,
|
|
718
|
-
"related": "@happyvertical/smrt-
|
|
450
|
+
"related": "@happyvertical/smrt-commerce:Invoice",
|
|
719
451
|
"columnType": "UUID"
|
|
720
452
|
},
|
|
721
453
|
{
|
|
722
|
-
"name": "
|
|
723
|
-
"type": "datetime",
|
|
724
|
-
"required": false,
|
|
725
|
-
"columnType": "TIMESTAMP",
|
|
726
|
-
"readonly": true
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "reviewNote",
|
|
454
|
+
"name": "draftType",
|
|
730
455
|
"type": "text",
|
|
731
456
|
"required": false,
|
|
732
|
-
"columnType": "TEXT"
|
|
733
|
-
"readonly": true
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
"name": "duplicateOfId",
|
|
737
|
-
"type": "foreignKey",
|
|
738
|
-
"required": false,
|
|
739
|
-
"related": "Expense",
|
|
740
|
-
"columnType": "UUID"
|
|
457
|
+
"columnType": "TEXT"
|
|
741
458
|
},
|
|
742
459
|
{
|
|
743
|
-
"name": "
|
|
744
|
-
"type": "
|
|
460
|
+
"name": "draftId",
|
|
461
|
+
"type": "text",
|
|
745
462
|
"required": false,
|
|
746
|
-
"columnType": "
|
|
463
|
+
"columnType": "TEXT"
|
|
747
464
|
},
|
|
748
465
|
{
|
|
749
|
-
"name": "
|
|
750
|
-
"type": "
|
|
466
|
+
"name": "invoiceLineId",
|
|
467
|
+
"type": "crossPackageRef",
|
|
751
468
|
"required": false,
|
|
752
|
-
"
|
|
753
|
-
"
|
|
469
|
+
"related": "@happyvertical/smrt-commerce:InvoiceLineItem",
|
|
470
|
+
"columnType": "UUID"
|
|
754
471
|
},
|
|
755
472
|
{
|
|
756
|
-
"name": "
|
|
757
|
-
"type": "
|
|
473
|
+
"name": "requestId",
|
|
474
|
+
"type": "text",
|
|
758
475
|
"required": false,
|
|
759
|
-
"columnType": "
|
|
760
|
-
"readonly": true
|
|
476
|
+
"columnType": "TEXT"
|
|
761
477
|
},
|
|
762
478
|
{
|
|
763
|
-
"name": "
|
|
479
|
+
"name": "requestFingerprint",
|
|
764
480
|
"type": "text",
|
|
765
481
|
"required": false,
|
|
766
|
-
"columnType": "TEXT"
|
|
767
|
-
"readonly": true
|
|
482
|
+
"columnType": "TEXT"
|
|
768
483
|
},
|
|
769
484
|
{
|
|
770
|
-
"name": "
|
|
485
|
+
"name": "relatedReservationId",
|
|
771
486
|
"type": "foreignKey",
|
|
772
487
|
"required": false,
|
|
773
|
-
"related": "
|
|
774
|
-
"columnType": "UUID"
|
|
775
|
-
|
|
488
|
+
"related": "ExpenseAllocationBilling",
|
|
489
|
+
"columnType": "UUID"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "kind",
|
|
493
|
+
"type": "text",
|
|
494
|
+
"required": false,
|
|
495
|
+
"columnType": "TEXT"
|
|
776
496
|
}
|
|
777
497
|
],
|
|
778
498
|
"relationships": [
|
|
779
499
|
{
|
|
780
|
-
"name": "
|
|
500
|
+
"name": "sourceExpenseId",
|
|
781
501
|
"type": "foreignKey",
|
|
782
|
-
"required":
|
|
502
|
+
"required": true,
|
|
783
503
|
"related": "Expense",
|
|
784
504
|
"columnType": "UUID"
|
|
785
505
|
},
|
|
786
506
|
{
|
|
787
|
-
"name": "
|
|
788
|
-
"type": "
|
|
789
|
-
"required":
|
|
790
|
-
"related": "
|
|
791
|
-
"columnType": "UUID"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"name": "paidByProfileId",
|
|
795
|
-
"type": "crossPackageRef",
|
|
796
|
-
"required": false,
|
|
797
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
507
|
+
"name": "portionId",
|
|
508
|
+
"type": "foreignKey",
|
|
509
|
+
"required": true,
|
|
510
|
+
"related": "ExpenseAllocationPortion",
|
|
798
511
|
"columnType": "UUID"
|
|
799
512
|
},
|
|
800
513
|
{
|
|
801
|
-
"name": "
|
|
514
|
+
"name": "invoiceId",
|
|
802
515
|
"type": "crossPackageRef",
|
|
803
516
|
"required": false,
|
|
804
|
-
"related": "@happyvertical/smrt-commerce:
|
|
517
|
+
"related": "@happyvertical/smrt-commerce:Invoice",
|
|
805
518
|
"columnType": "UUID"
|
|
806
519
|
},
|
|
807
520
|
{
|
|
808
|
-
"name": "
|
|
521
|
+
"name": "invoiceLineId",
|
|
809
522
|
"type": "crossPackageRef",
|
|
810
523
|
"required": false,
|
|
811
|
-
"related": "@happyvertical/smrt-commerce:
|
|
524
|
+
"related": "@happyvertical/smrt-commerce:InvoiceLineItem",
|
|
812
525
|
"columnType": "UUID"
|
|
813
526
|
},
|
|
814
527
|
{
|
|
815
|
-
"name": "
|
|
816
|
-
"type": "
|
|
528
|
+
"name": "relatedReservationId",
|
|
529
|
+
"type": "foreignKey",
|
|
817
530
|
"required": false,
|
|
818
|
-
"related": "
|
|
531
|
+
"related": "ExpenseAllocationBilling",
|
|
819
532
|
"columnType": "UUID"
|
|
820
|
-
}
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"methods": [
|
|
536
|
+
"delete",
|
|
537
|
+
"save"
|
|
538
|
+
],
|
|
539
|
+
"methodSignatures": [
|
|
821
540
|
{
|
|
822
|
-
"name": "
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
826
|
-
"columnType": "UUID"
|
|
541
|
+
"name": "delete",
|
|
542
|
+
"async": true,
|
|
543
|
+
"returns": "Promise<void>"
|
|
827
544
|
},
|
|
828
545
|
{
|
|
829
|
-
"name": "
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
546
|
+
"name": "save",
|
|
547
|
+
"async": true,
|
|
548
|
+
"params": [
|
|
549
|
+
"options?: SmrtSaveOptions"
|
|
550
|
+
],
|
|
551
|
+
"returns": "Promise<this>"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"tenant": {
|
|
555
|
+
"scoped": true,
|
|
556
|
+
"mode": "required",
|
|
557
|
+
"field": "tenantId"
|
|
558
|
+
},
|
|
559
|
+
"conflictColumns": [
|
|
560
|
+
"tenant_id",
|
|
561
|
+
"slug",
|
|
562
|
+
"context"
|
|
563
|
+
],
|
|
564
|
+
"surfaces": [],
|
|
565
|
+
"withheldSurfaces": [
|
|
835
566
|
{
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"
|
|
839
|
-
"
|
|
840
|
-
"
|
|
567
|
+
"kind": "api",
|
|
568
|
+
"operation": "save",
|
|
569
|
+
"code": "lifecycle-method",
|
|
570
|
+
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
571
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseAllocationBilling"
|
|
841
572
|
}
|
|
842
573
|
],
|
|
574
|
+
"relationshipFeatures": [
|
|
575
|
+
"crossPackageRef",
|
|
576
|
+
"foreignKey",
|
|
577
|
+
"uuidColumns"
|
|
578
|
+
],
|
|
579
|
+
"tags": [],
|
|
580
|
+
"risks": []
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "ExpenseCollection",
|
|
584
|
+
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
585
|
+
"collection": "expenses",
|
|
586
|
+
"description": "Collection for Expense. Reads go through the normal tenant interceptors, so inside withTenant() every method here sees only that tenant's expenses.",
|
|
587
|
+
"tableName": "expenses",
|
|
588
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
589
|
+
"extends": "SmrtCollection",
|
|
590
|
+
"fields": [],
|
|
591
|
+
"relationships": [],
|
|
843
592
|
"methods": [
|
|
593
|
+
"attachReceipt",
|
|
594
|
+
"commitmentPosition",
|
|
844
595
|
"completeSupplierPayableBasis",
|
|
845
|
-
"
|
|
846
|
-
"
|
|
847
|
-
"
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
"getRefundRecipient",
|
|
851
|
-
"getReimbursementPosition",
|
|
852
|
-
"getSupplierPayablePosition",
|
|
853
|
-
"isCountable",
|
|
854
|
-
"isReimbursed",
|
|
855
|
-
"markDuplicate",
|
|
856
|
-
"markReimbursed",
|
|
596
|
+
"forCostObject",
|
|
597
|
+
"listReviewedTaxFacts",
|
|
598
|
+
"record",
|
|
599
|
+
"recordReimbursement",
|
|
600
|
+
"recordReview",
|
|
857
601
|
"recordSupplierPayable",
|
|
858
602
|
"recordSupplierPayableEvent",
|
|
859
|
-
"
|
|
860
|
-
"
|
|
861
|
-
"
|
|
862
|
-
"
|
|
863
|
-
"
|
|
864
|
-
"
|
|
603
|
+
"refundPosition",
|
|
604
|
+
"reimbursementPosition",
|
|
605
|
+
"reviewAllocation",
|
|
606
|
+
"supplierPayablePosition",
|
|
607
|
+
"totalsByCurrency",
|
|
608
|
+
"withdrawAllocation"
|
|
865
609
|
],
|
|
866
610
|
"methodSignatures": [
|
|
867
611
|
{
|
|
868
|
-
"name": "
|
|
612
|
+
"name": "attachReceipt",
|
|
869
613
|
"async": true,
|
|
870
614
|
"params": [
|
|
871
|
-
"
|
|
615
|
+
"options: AttachExpenseReceiptActionInput"
|
|
872
616
|
],
|
|
873
|
-
"returns": "Promise<
|
|
617
|
+
"returns": "Promise<ExpenseReceipt>"
|
|
874
618
|
},
|
|
875
619
|
{
|
|
876
|
-
"name": "
|
|
620
|
+
"name": "commitmentPosition",
|
|
877
621
|
"async": true,
|
|
878
622
|
"params": [
|
|
623
|
+
"commitmentId: string",
|
|
879
624
|
"options?: object"
|
|
880
625
|
],
|
|
881
|
-
"returns": "Promise<
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"name": "getCostBasis",
|
|
885
|
-
"returns": "ExpenseCostBasis | null"
|
|
626
|
+
"returns": "Promise<CommitmentPosition>"
|
|
886
627
|
},
|
|
887
628
|
{
|
|
888
|
-
"name": "
|
|
629
|
+
"name": "completeSupplierPayableBasis",
|
|
889
630
|
"async": true,
|
|
890
|
-
"
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
"returns": "
|
|
631
|
+
"params": [
|
|
632
|
+
"expenseId: string",
|
|
633
|
+
"input: CompleteSupplierPayableBasisInput"
|
|
634
|
+
],
|
|
635
|
+
"returns": "Promise<SupplierPayablePosition>"
|
|
895
636
|
},
|
|
896
637
|
{
|
|
897
|
-
"name": "
|
|
638
|
+
"name": "forCostObject",
|
|
898
639
|
"async": true,
|
|
899
|
-
"
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
"returns": "
|
|
640
|
+
"params": [
|
|
641
|
+
"costObjectType: string",
|
|
642
|
+
"costObjectId: string"
|
|
643
|
+
],
|
|
644
|
+
"returns": "Promise<Expense[]>"
|
|
904
645
|
},
|
|
905
646
|
{
|
|
906
|
-
"name": "
|
|
647
|
+
"name": "listReviewedTaxFacts",
|
|
907
648
|
"async": true,
|
|
908
|
-
"
|
|
649
|
+
"params": [
|
|
650
|
+
"options: ReviewedExpenseTaxFactsOptions"
|
|
651
|
+
],
|
|
652
|
+
"returns": "Promise<ReviewedExpenseTaxFact[]>"
|
|
909
653
|
},
|
|
910
654
|
{
|
|
911
|
-
"name": "
|
|
655
|
+
"name": "record",
|
|
912
656
|
"async": true,
|
|
913
657
|
"params": [
|
|
914
|
-
"
|
|
658
|
+
"options: RecordExpenseActionInput"
|
|
915
659
|
],
|
|
916
|
-
"returns": "Promise<
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"name": "isCountable",
|
|
920
|
-
"returns": "boolean"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"name": "isReimbursed",
|
|
924
|
-
"returns": "boolean"
|
|
660
|
+
"returns": "Promise<Expense>"
|
|
925
661
|
},
|
|
926
662
|
{
|
|
927
|
-
"name": "
|
|
663
|
+
"name": "recordReimbursement",
|
|
928
664
|
"async": true,
|
|
929
665
|
"params": [
|
|
930
|
-
"
|
|
666
|
+
"options: MarkExpenseReimbursedActionInput"
|
|
931
667
|
],
|
|
932
|
-
"returns": "Promise<
|
|
668
|
+
"returns": "Promise<Expense>"
|
|
933
669
|
},
|
|
934
670
|
{
|
|
935
|
-
"name": "
|
|
671
|
+
"name": "recordReview",
|
|
936
672
|
"async": true,
|
|
937
673
|
"params": [
|
|
938
|
-
"
|
|
674
|
+
"options: ReviewExpenseActionInput"
|
|
939
675
|
],
|
|
940
|
-
"returns": "Promise<
|
|
676
|
+
"returns": "Promise<Expense>"
|
|
941
677
|
},
|
|
942
678
|
{
|
|
943
679
|
"name": "recordSupplierPayable",
|
|
944
680
|
"async": true,
|
|
945
681
|
"params": [
|
|
682
|
+
"expenseId: string",
|
|
946
683
|
"input: RecordSupplierPayableInput"
|
|
947
684
|
],
|
|
948
685
|
"returns": "Promise<SupplierPayablePosition>"
|
|
@@ -951,530 +688,812 @@
|
|
|
951
688
|
"name": "recordSupplierPayableEvent",
|
|
952
689
|
"async": true,
|
|
953
690
|
"params": [
|
|
691
|
+
"expenseId: string",
|
|
954
692
|
"input: RecordSupplierPayableEventInput"
|
|
955
693
|
],
|
|
956
694
|
"returns": "Promise<SupplierPayablePosition>"
|
|
957
695
|
},
|
|
958
696
|
{
|
|
959
|
-
"name": "
|
|
697
|
+
"name": "refundPosition",
|
|
960
698
|
"async": true,
|
|
961
699
|
"params": [
|
|
962
|
-
"
|
|
700
|
+
"sourceId: string"
|
|
963
701
|
],
|
|
964
|
-
"returns": "Promise<
|
|
702
|
+
"returns": "Promise<ExpenseRefundPosition>"
|
|
965
703
|
},
|
|
966
704
|
{
|
|
967
|
-
"name": "
|
|
705
|
+
"name": "reimbursementPosition",
|
|
968
706
|
"async": true,
|
|
969
707
|
"params": [
|
|
970
|
-
"
|
|
708
|
+
"sourceId: string"
|
|
971
709
|
],
|
|
972
|
-
"returns": "Promise<
|
|
710
|
+
"returns": "Promise<ExpenseReimbursementPosition>"
|
|
973
711
|
},
|
|
974
712
|
{
|
|
975
|
-
"name": "
|
|
713
|
+
"name": "reviewAllocation",
|
|
976
714
|
"async": true,
|
|
977
715
|
"params": [
|
|
978
|
-
"input:
|
|
716
|
+
"input: ReviewExpenseAllocationInput",
|
|
717
|
+
"authority: ExpenseAllocationAuthority"
|
|
979
718
|
],
|
|
980
|
-
"returns": "Promise<
|
|
719
|
+
"returns": "Promise<ExpenseAllocationResult>"
|
|
981
720
|
},
|
|
982
721
|
{
|
|
983
|
-
"name": "
|
|
722
|
+
"name": "supplierPayablePosition",
|
|
984
723
|
"async": true,
|
|
985
724
|
"params": [
|
|
986
|
-
"
|
|
725
|
+
"expenseId: string",
|
|
726
|
+
"input?: object"
|
|
987
727
|
],
|
|
988
|
-
"returns": "Promise<
|
|
728
|
+
"returns": "Promise<SupplierPayablePosition | null>"
|
|
989
729
|
},
|
|
990
730
|
{
|
|
991
|
-
"name": "
|
|
731
|
+
"name": "totalsByCurrency",
|
|
732
|
+
"async": true,
|
|
992
733
|
"params": [
|
|
993
|
-
"
|
|
734
|
+
"options?: ExpenseTotalsOptions"
|
|
994
735
|
],
|
|
995
|
-
"returns": "
|
|
736
|
+
"returns": "Promise<CurrencyTotals>"
|
|
996
737
|
},
|
|
997
738
|
{
|
|
998
|
-
"name": "
|
|
739
|
+
"name": "withdrawAllocation",
|
|
740
|
+
"async": true,
|
|
999
741
|
"params": [
|
|
1000
|
-
"
|
|
742
|
+
"input: WithdrawExpenseAllocationInput",
|
|
743
|
+
"authority: ExpenseAllocationAuthority"
|
|
1001
744
|
],
|
|
1002
|
-
"returns": "
|
|
745
|
+
"returns": "Promise<WithdrawExpenseAllocationResult>"
|
|
1003
746
|
}
|
|
1004
747
|
],
|
|
1005
|
-
"
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
748
|
+
"surfaces": [
|
|
749
|
+
{
|
|
750
|
+
"kind": "api",
|
|
751
|
+
"name": "expenses.record",
|
|
752
|
+
"operation": "record",
|
|
753
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
754
|
+
"path": "/expenses/record",
|
|
755
|
+
"method": "POST"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"kind": "api",
|
|
759
|
+
"name": "expenses.attachReceipt",
|
|
760
|
+
"operation": "attachReceipt",
|
|
761
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
762
|
+
"path": "/expenses/attachReceipt",
|
|
763
|
+
"method": "POST"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"kind": "api",
|
|
767
|
+
"name": "expenses.recordReview",
|
|
768
|
+
"operation": "recordReview",
|
|
769
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
770
|
+
"path": "/expenses/recordReview",
|
|
771
|
+
"method": "POST"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"kind": "api",
|
|
775
|
+
"name": "expenses.recordReimbursement",
|
|
776
|
+
"operation": "recordReimbursement",
|
|
777
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection",
|
|
778
|
+
"path": "/expenses/recordReimbursement",
|
|
779
|
+
"method": "POST"
|
|
780
|
+
}
|
|
1014
781
|
],
|
|
1015
|
-
"surfaces": [],
|
|
1016
782
|
"withheldSurfaces": [
|
|
1017
783
|
{
|
|
1018
784
|
"kind": "api",
|
|
1019
|
-
"operation": "
|
|
785
|
+
"operation": "commitmentPosition",
|
|
1020
786
|
"code": "not-included",
|
|
1021
787
|
"reason": "not listed in api.include",
|
|
1022
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
788
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1023
789
|
},
|
|
1024
790
|
{
|
|
1025
791
|
"kind": "api",
|
|
1026
|
-
"operation": "
|
|
792
|
+
"operation": "completeSupplierPayableBasis",
|
|
1027
793
|
"code": "not-included",
|
|
1028
794
|
"reason": "not listed in api.include",
|
|
1029
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
795
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1030
796
|
},
|
|
1031
797
|
{
|
|
1032
798
|
"kind": "api",
|
|
1033
|
-
"operation": "
|
|
799
|
+
"operation": "forCostObject",
|
|
1034
800
|
"code": "not-included",
|
|
1035
801
|
"reason": "not listed in api.include",
|
|
1036
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
802
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1037
803
|
},
|
|
1038
804
|
{
|
|
1039
805
|
"kind": "api",
|
|
1040
|
-
"operation": "
|
|
806
|
+
"operation": "listReviewedTaxFacts",
|
|
1041
807
|
"code": "not-included",
|
|
1042
808
|
"reason": "not listed in api.include",
|
|
1043
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
809
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1044
810
|
},
|
|
1045
811
|
{
|
|
1046
812
|
"kind": "api",
|
|
1047
|
-
"operation": "
|
|
813
|
+
"operation": "recordSupplierPayable",
|
|
1048
814
|
"code": "not-included",
|
|
1049
815
|
"reason": "not listed in api.include",
|
|
1050
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
816
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1051
817
|
},
|
|
1052
818
|
{
|
|
1053
819
|
"kind": "api",
|
|
1054
|
-
"operation": "
|
|
820
|
+
"operation": "recordSupplierPayableEvent",
|
|
1055
821
|
"code": "not-included",
|
|
1056
822
|
"reason": "not listed in api.include",
|
|
1057
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
823
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1058
824
|
},
|
|
1059
825
|
{
|
|
1060
826
|
"kind": "api",
|
|
1061
|
-
"operation": "
|
|
827
|
+
"operation": "refundPosition",
|
|
1062
828
|
"code": "not-included",
|
|
1063
829
|
"reason": "not listed in api.include",
|
|
1064
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
830
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1065
831
|
},
|
|
1066
832
|
{
|
|
1067
833
|
"kind": "api",
|
|
1068
|
-
"operation": "
|
|
834
|
+
"operation": "reimbursementPosition",
|
|
1069
835
|
"code": "not-included",
|
|
1070
836
|
"reason": "not listed in api.include",
|
|
1071
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
837
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1072
838
|
},
|
|
1073
839
|
{
|
|
1074
840
|
"kind": "api",
|
|
1075
|
-
"operation": "
|
|
841
|
+
"operation": "reviewAllocation",
|
|
1076
842
|
"code": "not-included",
|
|
1077
843
|
"reason": "not listed in api.include",
|
|
1078
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
844
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1079
845
|
},
|
|
1080
846
|
{
|
|
1081
847
|
"kind": "api",
|
|
1082
|
-
"operation": "
|
|
848
|
+
"operation": "supplierPayablePosition",
|
|
1083
849
|
"code": "not-included",
|
|
1084
850
|
"reason": "not listed in api.include",
|
|
1085
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
851
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1086
852
|
},
|
|
1087
853
|
{
|
|
1088
854
|
"kind": "api",
|
|
1089
|
-
"operation": "
|
|
855
|
+
"operation": "totalsByCurrency",
|
|
1090
856
|
"code": "not-included",
|
|
1091
857
|
"reason": "not listed in api.include",
|
|
1092
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
858
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
1093
859
|
},
|
|
1094
860
|
{
|
|
1095
861
|
"kind": "api",
|
|
1096
|
-
"operation": "
|
|
862
|
+
"operation": "withdrawAllocation",
|
|
1097
863
|
"code": "not-included",
|
|
1098
864
|
"reason": "not listed in api.include",
|
|
1099
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
865
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseCollection"
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
"relationshipFeatures": [
|
|
869
|
+
"uuidColumns"
|
|
870
|
+
],
|
|
871
|
+
"tags": [],
|
|
872
|
+
"risks": []
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "ExpenseReceiptCollection",
|
|
876
|
+
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection",
|
|
877
|
+
"collection": "expensereceipts",
|
|
878
|
+
"description": "Junction collection over expense_receipts (left: expense, right: asset). Reads go through the normal tenant interceptors.",
|
|
879
|
+
"tableName": "expense_receipts",
|
|
880
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
881
|
+
"extends": "SmrtJunction",
|
|
882
|
+
"fields": [],
|
|
883
|
+
"relationships": [],
|
|
884
|
+
"methods": [
|
|
885
|
+
"attach",
|
|
886
|
+
"attachReceipt",
|
|
887
|
+
"byLeft",
|
|
888
|
+
"byRight",
|
|
889
|
+
"detach",
|
|
890
|
+
"findDuplicateReceipts",
|
|
891
|
+
"receiptsFor",
|
|
892
|
+
"setLinks"
|
|
893
|
+
],
|
|
894
|
+
"methodSignatures": [
|
|
895
|
+
{
|
|
896
|
+
"name": "attach",
|
|
897
|
+
"async": true,
|
|
898
|
+
"params": [
|
|
899
|
+
"_expenseId: string",
|
|
900
|
+
"_assetId: string",
|
|
901
|
+
"_opts?: JunctionAttachOptions"
|
|
902
|
+
],
|
|
903
|
+
"returns": "Promise<ExpenseReceipt>"
|
|
1100
904
|
},
|
|
1101
905
|
{
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1105
|
-
|
|
1106
|
-
|
|
906
|
+
"name": "attachReceipt",
|
|
907
|
+
"async": true,
|
|
908
|
+
"params": [
|
|
909
|
+
"input: AttachReceiptInput"
|
|
910
|
+
],
|
|
911
|
+
"returns": "Promise<ExpenseReceipt>"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "byLeft",
|
|
915
|
+
"async": true,
|
|
916
|
+
"params": [
|
|
917
|
+
"leftId: string",
|
|
918
|
+
"opts?: JunctionFilterOptions"
|
|
919
|
+
],
|
|
920
|
+
"returns": "Promise<TItem[]>"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "byRight",
|
|
924
|
+
"async": true,
|
|
925
|
+
"params": [
|
|
926
|
+
"rightId: string",
|
|
927
|
+
"opts?: JunctionFilterOptions"
|
|
928
|
+
],
|
|
929
|
+
"returns": "Promise<TItem[]>"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "detach",
|
|
933
|
+
"async": true,
|
|
934
|
+
"params": [
|
|
935
|
+
"leftId: string",
|
|
936
|
+
"rightId: string",
|
|
937
|
+
"opts?: JunctionFilterOptions"
|
|
938
|
+
],
|
|
939
|
+
"returns": "Promise<void>"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "findDuplicateReceipts",
|
|
943
|
+
"async": true,
|
|
944
|
+
"params": [
|
|
945
|
+
"options?: FindDuplicateReceiptsOptions"
|
|
946
|
+
],
|
|
947
|
+
"returns": "Promise<DuplicateReceiptGroup[]>"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "receiptsFor",
|
|
951
|
+
"async": true,
|
|
952
|
+
"params": [
|
|
953
|
+
"expenseId: string"
|
|
954
|
+
],
|
|
955
|
+
"returns": "Promise<ExpenseReceipt[]>"
|
|
1107
956
|
},
|
|
957
|
+
{
|
|
958
|
+
"name": "setLinks",
|
|
959
|
+
"async": true,
|
|
960
|
+
"params": [
|
|
961
|
+
"_expenseId: string",
|
|
962
|
+
"_assetIds: string[]",
|
|
963
|
+
"_opts?: JunctionAttachOptions"
|
|
964
|
+
],
|
|
965
|
+
"returns": "Promise<void>"
|
|
966
|
+
}
|
|
967
|
+
],
|
|
968
|
+
"surfaces": [],
|
|
969
|
+
"withheldSurfaces": [
|
|
1108
970
|
{
|
|
1109
971
|
"kind": "api",
|
|
1110
|
-
"operation": "
|
|
972
|
+
"operation": "attach",
|
|
1111
973
|
"code": "not-included",
|
|
1112
974
|
"reason": "not listed in api.include",
|
|
1113
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
975
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1114
976
|
},
|
|
1115
977
|
{
|
|
1116
978
|
"kind": "api",
|
|
1117
|
-
"operation": "
|
|
979
|
+
"operation": "attachReceipt",
|
|
1118
980
|
"code": "not-included",
|
|
1119
981
|
"reason": "not listed in api.include",
|
|
1120
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
982
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1121
983
|
},
|
|
1122
984
|
{
|
|
1123
985
|
"kind": "api",
|
|
1124
|
-
"operation": "
|
|
986
|
+
"operation": "byLeft",
|
|
1125
987
|
"code": "not-included",
|
|
1126
988
|
"reason": "not listed in api.include",
|
|
1127
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
989
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1128
990
|
},
|
|
1129
991
|
{
|
|
1130
992
|
"kind": "api",
|
|
1131
|
-
"operation": "
|
|
993
|
+
"operation": "byRight",
|
|
1132
994
|
"code": "not-included",
|
|
1133
995
|
"reason": "not listed in api.include",
|
|
1134
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
996
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1135
997
|
},
|
|
1136
998
|
{
|
|
1137
999
|
"kind": "api",
|
|
1138
|
-
"operation": "
|
|
1139
|
-
"code": "
|
|
1140
|
-
"reason": "
|
|
1141
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
1000
|
+
"operation": "detach",
|
|
1001
|
+
"code": "not-included",
|
|
1002
|
+
"reason": "not listed in api.include",
|
|
1003
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1142
1004
|
},
|
|
1143
1005
|
{
|
|
1144
1006
|
"kind": "api",
|
|
1145
|
-
"operation": "
|
|
1007
|
+
"operation": "findDuplicateReceipts",
|
|
1146
1008
|
"code": "not-included",
|
|
1147
1009
|
"reason": "not listed in api.include",
|
|
1148
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
1010
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1149
1011
|
},
|
|
1150
1012
|
{
|
|
1151
1013
|
"kind": "api",
|
|
1152
|
-
"operation": "
|
|
1014
|
+
"operation": "receiptsFor",
|
|
1153
1015
|
"code": "not-included",
|
|
1154
1016
|
"reason": "not listed in api.include",
|
|
1155
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
1017
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"kind": "api",
|
|
1021
|
+
"operation": "setLinks",
|
|
1022
|
+
"code": "not-included",
|
|
1023
|
+
"reason": "not listed in api.include",
|
|
1024
|
+
"objectName": "@happyvertical/smrt-expenses:ExpenseReceiptCollection"
|
|
1156
1025
|
}
|
|
1157
1026
|
],
|
|
1158
1027
|
"relationshipFeatures": [
|
|
1159
|
-
"
|
|
1160
|
-
"foreignKey",
|
|
1028
|
+
"SmrtJunction",
|
|
1161
1029
|
"uuidColumns"
|
|
1162
1030
|
],
|
|
1163
1031
|
"tags": [],
|
|
1164
1032
|
"risks": []
|
|
1165
1033
|
},
|
|
1166
1034
|
{
|
|
1167
|
-
"name": "
|
|
1168
|
-
"qualifiedName": "@happyvertical/smrt-expenses:
|
|
1035
|
+
"name": "Revisions",
|
|
1036
|
+
"qualifiedName": "@happyvertical/smrt-expenses:Revisions",
|
|
1169
1037
|
"collection": "expenseallocationrevisions",
|
|
1170
|
-
"description": "Persisted command-owned ExpenseAllocationRevision evidence.",
|
|
1171
1038
|
"tableName": "expense_allocation_revisions",
|
|
1172
1039
|
"packageName": "@happyvertical/smrt-expenses",
|
|
1040
|
+
"extends": "SmrtCollection",
|
|
1041
|
+
"fields": [],
|
|
1042
|
+
"relationships": [],
|
|
1043
|
+
"methods": [],
|
|
1044
|
+
"surfaces": [],
|
|
1045
|
+
"relationshipFeatures": [
|
|
1046
|
+
"uuidColumns"
|
|
1047
|
+
],
|
|
1048
|
+
"tags": [],
|
|
1049
|
+
"risks": []
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "Portions",
|
|
1053
|
+
"qualifiedName": "@happyvertical/smrt-expenses:Portions",
|
|
1054
|
+
"collection": "expenseallocationportions",
|
|
1055
|
+
"tableName": "expense_allocation_portions",
|
|
1056
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
1057
|
+
"extends": "SmrtCollection",
|
|
1058
|
+
"fields": [],
|
|
1059
|
+
"relationships": [],
|
|
1060
|
+
"methods": [],
|
|
1061
|
+
"surfaces": [],
|
|
1062
|
+
"relationshipFeatures": [
|
|
1063
|
+
"uuidColumns"
|
|
1064
|
+
],
|
|
1065
|
+
"tags": [],
|
|
1066
|
+
"risks": []
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "Billings",
|
|
1070
|
+
"qualifiedName": "@happyvertical/smrt-expenses:Billings",
|
|
1071
|
+
"collection": "expenseallocationbillings",
|
|
1072
|
+
"tableName": "expense_allocation_billings",
|
|
1073
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
1074
|
+
"extends": "SmrtCollection",
|
|
1075
|
+
"fields": [],
|
|
1076
|
+
"relationships": [],
|
|
1077
|
+
"methods": [],
|
|
1078
|
+
"surfaces": [],
|
|
1079
|
+
"relationshipFeatures": [
|
|
1080
|
+
"uuidColumns"
|
|
1081
|
+
],
|
|
1082
|
+
"tags": [],
|
|
1083
|
+
"risks": []
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"name": "Expense",
|
|
1087
|
+
"qualifiedName": "@happyvertical/smrt-expenses:Expense",
|
|
1088
|
+
"collection": "expenses",
|
|
1089
|
+
"description": "A cost someone incurred.",
|
|
1090
|
+
"tableName": "expenses",
|
|
1091
|
+
"packageName": "@happyvertical/smrt-expenses",
|
|
1173
1092
|
"extends": "SmrtObject",
|
|
1174
1093
|
"fields": [
|
|
1175
1094
|
{
|
|
1176
|
-
"name": "
|
|
1095
|
+
"name": "tenantId",
|
|
1177
1096
|
"type": "text",
|
|
1178
1097
|
"required": false,
|
|
1179
|
-
"columnType": "
|
|
1180
|
-
"default": "allocation"
|
|
1098
|
+
"columnType": "UUID"
|
|
1181
1099
|
},
|
|
1182
1100
|
{
|
|
1183
|
-
"name": "
|
|
1101
|
+
"name": "costObjectType",
|
|
1184
1102
|
"type": "text",
|
|
1185
1103
|
"required": false,
|
|
1186
1104
|
"columnType": "TEXT"
|
|
1187
1105
|
},
|
|
1188
1106
|
{
|
|
1189
|
-
"name": "
|
|
1107
|
+
"name": "costObjectId",
|
|
1190
1108
|
"type": "text",
|
|
1191
1109
|
"required": false,
|
|
1192
1110
|
"columnType": "TEXT"
|
|
1193
1111
|
},
|
|
1194
1112
|
{
|
|
1195
|
-
"name": "
|
|
1113
|
+
"name": "category",
|
|
1196
1114
|
"type": "text",
|
|
1197
1115
|
"required": false,
|
|
1198
1116
|
"columnType": "TEXT"
|
|
1199
1117
|
},
|
|
1200
1118
|
{
|
|
1201
|
-
"name": "
|
|
1119
|
+
"name": "description",
|
|
1202
1120
|
"type": "text",
|
|
1203
1121
|
"required": false,
|
|
1204
|
-
"columnType": "TEXT"
|
|
1205
|
-
"default": "company"
|
|
1122
|
+
"columnType": "TEXT"
|
|
1206
1123
|
},
|
|
1207
1124
|
{
|
|
1208
|
-
"name": "
|
|
1209
|
-
"type": "
|
|
1210
|
-
"required":
|
|
1211
|
-
"columnType": "
|
|
1212
|
-
"default": false
|
|
1125
|
+
"name": "amount",
|
|
1126
|
+
"type": "integer",
|
|
1127
|
+
"required": false,
|
|
1128
|
+
"columnType": "INTEGER"
|
|
1213
1129
|
},
|
|
1214
1130
|
{
|
|
1215
|
-
"name": "
|
|
1216
|
-
"type": "
|
|
1131
|
+
"name": "currency",
|
|
1132
|
+
"type": "text",
|
|
1217
1133
|
"required": false,
|
|
1218
|
-
"columnType": "
|
|
1134
|
+
"columnType": "TEXT"
|
|
1219
1135
|
},
|
|
1220
1136
|
{
|
|
1221
|
-
"name": "
|
|
1222
|
-
"type": "
|
|
1223
|
-
"required":
|
|
1224
|
-
"columnType": "
|
|
1225
|
-
"default": false
|
|
1137
|
+
"name": "financialBreakdown",
|
|
1138
|
+
"type": "text",
|
|
1139
|
+
"required": false,
|
|
1140
|
+
"columnType": "TEXT"
|
|
1226
1141
|
},
|
|
1227
1142
|
{
|
|
1228
|
-
"name": "
|
|
1143
|
+
"name": "supplierPayableJson",
|
|
1229
1144
|
"type": "text",
|
|
1230
|
-
"required":
|
|
1231
|
-
"columnType": "
|
|
1145
|
+
"required": false,
|
|
1146
|
+
"columnType": "TEXT",
|
|
1147
|
+
"readonly": true
|
|
1232
1148
|
},
|
|
1233
1149
|
{
|
|
1234
|
-
"name": "
|
|
1235
|
-
"type": "
|
|
1236
|
-
"required":
|
|
1237
|
-
"
|
|
1238
|
-
"columnType": "UUID"
|
|
1150
|
+
"name": "paidByName",
|
|
1151
|
+
"type": "text",
|
|
1152
|
+
"required": false,
|
|
1153
|
+
"columnType": "TEXT"
|
|
1239
1154
|
},
|
|
1240
1155
|
{
|
|
1241
|
-
"name": "
|
|
1156
|
+
"name": "refundOfId",
|
|
1242
1157
|
"type": "foreignKey",
|
|
1243
1158
|
"required": false,
|
|
1244
|
-
"related": "
|
|
1159
|
+
"related": "Expense",
|
|
1245
1160
|
"columnType": "UUID"
|
|
1246
1161
|
},
|
|
1247
1162
|
{
|
|
1248
|
-
"name": "
|
|
1163
|
+
"name": "refundRecipient",
|
|
1249
1164
|
"type": "text",
|
|
1250
1165
|
"required": false,
|
|
1251
1166
|
"columnType": "TEXT"
|
|
1252
1167
|
},
|
|
1253
1168
|
{
|
|
1254
|
-
"name": "
|
|
1169
|
+
"name": "incurredOn",
|
|
1255
1170
|
"type": "text",
|
|
1256
1171
|
"required": false,
|
|
1257
1172
|
"columnType": "TEXT"
|
|
1258
1173
|
},
|
|
1259
1174
|
{
|
|
1260
|
-
"name": "
|
|
1175
|
+
"name": "recordedAt",
|
|
1176
|
+
"type": "datetime",
|
|
1177
|
+
"required": false,
|
|
1178
|
+
"columnType": "TIMESTAMP"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "recordedByProfileId",
|
|
1182
|
+
"type": "crossPackageRef",
|
|
1183
|
+
"required": false,
|
|
1184
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1185
|
+
"columnType": "UUID"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "paidBy",
|
|
1261
1189
|
"type": "text",
|
|
1262
1190
|
"required": false,
|
|
1263
1191
|
"columnType": "TEXT"
|
|
1264
1192
|
},
|
|
1265
1193
|
{
|
|
1266
|
-
"name": "
|
|
1194
|
+
"name": "paidByProfileId",
|
|
1195
|
+
"type": "crossPackageRef",
|
|
1196
|
+
"required": false,
|
|
1197
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1198
|
+
"columnType": "UUID"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"name": "vendorId",
|
|
1202
|
+
"type": "crossPackageRef",
|
|
1203
|
+
"required": false,
|
|
1204
|
+
"related": "@happyvertical/smrt-commerce:Vendor",
|
|
1205
|
+
"columnType": "UUID"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "commitmentId",
|
|
1209
|
+
"type": "crossPackageRef",
|
|
1210
|
+
"required": false,
|
|
1211
|
+
"related": "@happyvertical/smrt-commerce:PurchaseContract",
|
|
1212
|
+
"columnType": "UUID"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "commitmentLineId",
|
|
1216
|
+
"type": "crossPackageRef",
|
|
1217
|
+
"required": false,
|
|
1218
|
+
"related": "@happyvertical/smrt-commerce:ContractLineItem",
|
|
1219
|
+
"columnType": "UUID"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "reviewStatus",
|
|
1267
1223
|
"type": "text",
|
|
1268
1224
|
"required": false,
|
|
1269
|
-
"columnType": "TEXT"
|
|
1225
|
+
"columnType": "TEXT",
|
|
1226
|
+
"readonly": true
|
|
1270
1227
|
},
|
|
1271
1228
|
{
|
|
1272
|
-
"name": "
|
|
1229
|
+
"name": "reviewedByProfileId",
|
|
1230
|
+
"type": "crossPackageRef",
|
|
1231
|
+
"required": false,
|
|
1232
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1233
|
+
"columnType": "UUID",
|
|
1234
|
+
"readonly": true
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"name": "reviewedAt",
|
|
1238
|
+
"type": "datetime",
|
|
1239
|
+
"required": false,
|
|
1240
|
+
"columnType": "TIMESTAMP",
|
|
1241
|
+
"readonly": true
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "reviewNote",
|
|
1273
1245
|
"type": "text",
|
|
1274
1246
|
"required": false,
|
|
1275
|
-
"columnType": "TEXT"
|
|
1247
|
+
"columnType": "TEXT",
|
|
1248
|
+
"readonly": true
|
|
1276
1249
|
},
|
|
1277
1250
|
{
|
|
1278
|
-
"name": "
|
|
1251
|
+
"name": "duplicateOfId",
|
|
1252
|
+
"type": "foreignKey",
|
|
1253
|
+
"required": false,
|
|
1254
|
+
"related": "Expense",
|
|
1255
|
+
"columnType": "UUID",
|
|
1256
|
+
"readonly": true
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "reimbursable",
|
|
1260
|
+
"type": "boolean",
|
|
1261
|
+
"required": false,
|
|
1262
|
+
"columnType": "BOOLEAN"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "reimbursedAmount",
|
|
1279
1266
|
"type": "integer",
|
|
1280
1267
|
"required": false,
|
|
1281
|
-
"columnType": "INTEGER"
|
|
1268
|
+
"columnType": "INTEGER",
|
|
1269
|
+
"readonly": true
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "reimbursedAt",
|
|
1273
|
+
"type": "datetime",
|
|
1274
|
+
"required": false,
|
|
1275
|
+
"columnType": "TIMESTAMP",
|
|
1276
|
+
"readonly": true
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "reimbursementReference",
|
|
1280
|
+
"type": "text",
|
|
1281
|
+
"required": false,
|
|
1282
|
+
"columnType": "TEXT",
|
|
1283
|
+
"readonly": true
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"name": "activeAllocationRevisionId",
|
|
1287
|
+
"type": "foreignKey",
|
|
1288
|
+
"required": false,
|
|
1289
|
+
"related": "ExpenseAllocationRevision",
|
|
1290
|
+
"columnType": "UUID",
|
|
1291
|
+
"readonly": true
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
"relationships": [
|
|
1295
|
+
{
|
|
1296
|
+
"name": "refundOfId",
|
|
1297
|
+
"type": "foreignKey",
|
|
1298
|
+
"required": false,
|
|
1299
|
+
"related": "Expense",
|
|
1300
|
+
"columnType": "UUID"
|
|
1282
1301
|
},
|
|
1283
1302
|
{
|
|
1284
|
-
"name": "
|
|
1285
|
-
"type": "
|
|
1303
|
+
"name": "recordedByProfileId",
|
|
1304
|
+
"type": "crossPackageRef",
|
|
1286
1305
|
"required": false,
|
|
1287
|
-
"
|
|
1306
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1307
|
+
"columnType": "UUID"
|
|
1288
1308
|
},
|
|
1289
1309
|
{
|
|
1290
|
-
"name": "
|
|
1310
|
+
"name": "paidByProfileId",
|
|
1291
1311
|
"type": "crossPackageRef",
|
|
1292
|
-
"required":
|
|
1312
|
+
"required": false,
|
|
1293
1313
|
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1294
1314
|
"columnType": "UUID"
|
|
1295
1315
|
},
|
|
1296
1316
|
{
|
|
1297
|
-
"name": "
|
|
1317
|
+
"name": "vendorId",
|
|
1298
1318
|
"type": "crossPackageRef",
|
|
1299
|
-
"required":
|
|
1300
|
-
"related": "@happyvertical/smrt-
|
|
1319
|
+
"required": false,
|
|
1320
|
+
"related": "@happyvertical/smrt-commerce:Vendor",
|
|
1301
1321
|
"columnType": "UUID"
|
|
1302
1322
|
},
|
|
1303
1323
|
{
|
|
1304
|
-
"name": "
|
|
1305
|
-
"type": "
|
|
1324
|
+
"name": "commitmentId",
|
|
1325
|
+
"type": "crossPackageRef",
|
|
1306
1326
|
"required": false,
|
|
1307
|
-
"
|
|
1308
|
-
}
|
|
1309
|
-
],
|
|
1310
|
-
"relationships": [
|
|
1311
|
-
{
|
|
1312
|
-
"name": "sourceExpenseId",
|
|
1313
|
-
"type": "foreignKey",
|
|
1314
|
-
"required": true,
|
|
1315
|
-
"related": "Expense",
|
|
1327
|
+
"related": "@happyvertical/smrt-commerce:PurchaseContract",
|
|
1316
1328
|
"columnType": "UUID"
|
|
1317
1329
|
},
|
|
1318
1330
|
{
|
|
1319
|
-
"name": "
|
|
1320
|
-
"type": "
|
|
1331
|
+
"name": "commitmentLineId",
|
|
1332
|
+
"type": "crossPackageRef",
|
|
1321
1333
|
"required": false,
|
|
1322
|
-
"related": "
|
|
1334
|
+
"related": "@happyvertical/smrt-commerce:ContractLineItem",
|
|
1323
1335
|
"columnType": "UUID"
|
|
1324
1336
|
},
|
|
1325
1337
|
{
|
|
1326
1338
|
"name": "reviewedByProfileId",
|
|
1327
1339
|
"type": "crossPackageRef",
|
|
1328
|
-
"required":
|
|
1340
|
+
"required": false,
|
|
1329
1341
|
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1330
1342
|
"columnType": "UUID"
|
|
1331
1343
|
},
|
|
1332
1344
|
{
|
|
1333
|
-
"name": "
|
|
1334
|
-
"type": "
|
|
1335
|
-
"required":
|
|
1336
|
-
"related": "
|
|
1345
|
+
"name": "duplicateOfId",
|
|
1346
|
+
"type": "foreignKey",
|
|
1347
|
+
"required": false,
|
|
1348
|
+
"related": "Expense",
|
|
1349
|
+
"columnType": "UUID"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "activeAllocationRevisionId",
|
|
1353
|
+
"type": "foreignKey",
|
|
1354
|
+
"required": false,
|
|
1355
|
+
"related": "ExpenseAllocationRevision",
|
|
1337
1356
|
"columnType": "UUID"
|
|
1338
1357
|
}
|
|
1339
1358
|
],
|
|
1340
1359
|
"methods": [
|
|
1360
|
+
"completeSupplierPayableBasis",
|
|
1341
1361
|
"delete",
|
|
1342
|
-
"
|
|
1362
|
+
"getCostBasis",
|
|
1363
|
+
"getCostObject",
|
|
1364
|
+
"getFinancialBreakdown",
|
|
1365
|
+
"getRefundPosition",
|
|
1366
|
+
"getRefundRecipient",
|
|
1367
|
+
"getReimbursementPosition",
|
|
1368
|
+
"getSupplierPayablePosition",
|
|
1369
|
+
"isCountable",
|
|
1370
|
+
"isReimbursed",
|
|
1371
|
+
"markDuplicate",
|
|
1372
|
+
"markReimbursed",
|
|
1373
|
+
"recordSupplierPayable",
|
|
1374
|
+
"recordSupplierPayableEvent",
|
|
1375
|
+
"reject",
|
|
1376
|
+
"reopen",
|
|
1377
|
+
"review",
|
|
1378
|
+
"save",
|
|
1379
|
+
"setFinancialBreakdown",
|
|
1380
|
+
"setRefundRecipient"
|
|
1343
1381
|
],
|
|
1344
1382
|
"methodSignatures": [
|
|
1345
1383
|
{
|
|
1346
|
-
"name": "
|
|
1384
|
+
"name": "completeSupplierPayableBasis",
|
|
1347
1385
|
"async": true,
|
|
1348
|
-
"
|
|
1386
|
+
"params": [
|
|
1387
|
+
"input: CompleteSupplierPayableBasisInput"
|
|
1388
|
+
],
|
|
1389
|
+
"returns": "Promise<SupplierPayablePosition>"
|
|
1349
1390
|
},
|
|
1350
1391
|
{
|
|
1351
|
-
"name": "
|
|
1392
|
+
"name": "delete",
|
|
1352
1393
|
"async": true,
|
|
1353
1394
|
"params": [
|
|
1354
|
-
"options?:
|
|
1395
|
+
"options?: object"
|
|
1355
1396
|
],
|
|
1356
|
-
"returns": "Promise<
|
|
1357
|
-
}
|
|
1358
|
-
],
|
|
1359
|
-
"tenant": {
|
|
1360
|
-
"scoped": true,
|
|
1361
|
-
"mode": "required",
|
|
1362
|
-
"field": "tenantId"
|
|
1363
|
-
},
|
|
1364
|
-
"conflictColumns": [
|
|
1365
|
-
"tenant_id",
|
|
1366
|
-
"slug",
|
|
1367
|
-
"context"
|
|
1368
|
-
],
|
|
1369
|
-
"surfaces": [],
|
|
1370
|
-
"withheldSurfaces": [
|
|
1397
|
+
"returns": "Promise<void>"
|
|
1398
|
+
},
|
|
1371
1399
|
{
|
|
1372
|
-
"
|
|
1373
|
-
"
|
|
1374
|
-
|
|
1375
|
-
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
1376
|
-
"objectName": "@happyvertical/smrt-expenses:ExpenseAllocationRevision"
|
|
1377
|
-
}
|
|
1378
|
-
],
|
|
1379
|
-
"relationshipFeatures": [
|
|
1380
|
-
"crossPackageRef",
|
|
1381
|
-
"foreignKey",
|
|
1382
|
-
"uuidColumns"
|
|
1383
|
-
],
|
|
1384
|
-
"tags": [],
|
|
1385
|
-
"risks": []
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
"name": "ExpenseAllocationPortion",
|
|
1389
|
-
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseAllocationPortion",
|
|
1390
|
-
"collection": "expenseallocationportions",
|
|
1391
|
-
"description": "Persisted command-owned ExpenseAllocationPortion evidence.",
|
|
1392
|
-
"tableName": "expense_allocation_portions",
|
|
1393
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
1394
|
-
"extends": "SmrtObject",
|
|
1395
|
-
"fields": [
|
|
1400
|
+
"name": "getCostBasis",
|
|
1401
|
+
"returns": "ExpenseCostBasis | null"
|
|
1402
|
+
},
|
|
1396
1403
|
{
|
|
1397
|
-
"name": "
|
|
1398
|
-
"
|
|
1399
|
-
"
|
|
1400
|
-
"columnType": "UUID"
|
|
1404
|
+
"name": "getCostObject",
|
|
1405
|
+
"async": true,
|
|
1406
|
+
"returns": "Promise<T | null>"
|
|
1401
1407
|
},
|
|
1402
1408
|
{
|
|
1403
|
-
"name": "
|
|
1404
|
-
"
|
|
1405
|
-
"required": true,
|
|
1406
|
-
"related": "Expense",
|
|
1407
|
-
"columnType": "UUID"
|
|
1409
|
+
"name": "getFinancialBreakdown",
|
|
1410
|
+
"returns": "ExpenseFinancialBreakdown | null"
|
|
1408
1411
|
},
|
|
1409
1412
|
{
|
|
1410
|
-
"name": "
|
|
1411
|
-
"
|
|
1412
|
-
"
|
|
1413
|
-
"related": "ExpenseAllocationRevision",
|
|
1414
|
-
"columnType": "UUID"
|
|
1413
|
+
"name": "getRefundPosition",
|
|
1414
|
+
"async": true,
|
|
1415
|
+
"returns": "Promise<ExpenseRefundPosition>"
|
|
1415
1416
|
},
|
|
1416
1417
|
{
|
|
1417
|
-
"name": "
|
|
1418
|
-
"
|
|
1419
|
-
"required": false,
|
|
1420
|
-
"columnType": "TEXT"
|
|
1418
|
+
"name": "getRefundRecipient",
|
|
1419
|
+
"returns": "ExpenseRefundRecipient | null"
|
|
1421
1420
|
},
|
|
1422
1421
|
{
|
|
1423
|
-
"name": "
|
|
1424
|
-
"
|
|
1425
|
-
"
|
|
1426
|
-
"columnType": "TEXT"
|
|
1422
|
+
"name": "getReimbursementPosition",
|
|
1423
|
+
"async": true,
|
|
1424
|
+
"returns": "Promise<ExpenseReimbursementPosition>"
|
|
1427
1425
|
},
|
|
1428
1426
|
{
|
|
1429
|
-
"name": "
|
|
1430
|
-
"
|
|
1431
|
-
"
|
|
1432
|
-
|
|
1427
|
+
"name": "getSupplierPayablePosition",
|
|
1428
|
+
"async": true,
|
|
1429
|
+
"params": [
|
|
1430
|
+
"input?: object"
|
|
1431
|
+
],
|
|
1432
|
+
"returns": "Promise<SupplierPayablePosition | null>"
|
|
1433
1433
|
},
|
|
1434
1434
|
{
|
|
1435
|
-
"name": "
|
|
1436
|
-
"
|
|
1437
|
-
"required": false,
|
|
1438
|
-
"columnType": "TEXT"
|
|
1435
|
+
"name": "isCountable",
|
|
1436
|
+
"returns": "boolean"
|
|
1439
1437
|
},
|
|
1440
1438
|
{
|
|
1441
|
-
"name": "
|
|
1442
|
-
"
|
|
1443
|
-
"required": false,
|
|
1444
|
-
"columnType": "INTEGER"
|
|
1439
|
+
"name": "isReimbursed",
|
|
1440
|
+
"returns": "boolean"
|
|
1445
1441
|
},
|
|
1446
1442
|
{
|
|
1447
|
-
"name": "
|
|
1448
|
-
"
|
|
1449
|
-
"
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1443
|
+
"name": "markDuplicate",
|
|
1444
|
+
"async": true,
|
|
1445
|
+
"params": [
|
|
1446
|
+
"input: MarkDuplicateExpenseInput"
|
|
1447
|
+
],
|
|
1448
|
+
"returns": "Promise<this>"
|
|
1449
|
+
},
|
|
1454
1450
|
{
|
|
1455
|
-
"name": "
|
|
1456
|
-
"
|
|
1457
|
-
"
|
|
1458
|
-
|
|
1459
|
-
|
|
1451
|
+
"name": "markReimbursed",
|
|
1452
|
+
"async": true,
|
|
1453
|
+
"params": [
|
|
1454
|
+
"input?: MarkReimbursedInput"
|
|
1455
|
+
],
|
|
1456
|
+
"returns": "Promise<this>"
|
|
1460
1457
|
},
|
|
1461
1458
|
{
|
|
1462
|
-
"name": "
|
|
1463
|
-
"
|
|
1464
|
-
"
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1459
|
+
"name": "recordSupplierPayable",
|
|
1460
|
+
"async": true,
|
|
1461
|
+
"params": [
|
|
1462
|
+
"input: RecordSupplierPayableInput"
|
|
1463
|
+
],
|
|
1464
|
+
"returns": "Promise<SupplierPayablePosition>"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "recordSupplierPayableEvent",
|
|
1468
|
+
"async": true,
|
|
1469
|
+
"params": [
|
|
1470
|
+
"input: RecordSupplierPayableEventInput"
|
|
1471
|
+
],
|
|
1472
|
+
"returns": "Promise<SupplierPayablePosition>"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"name": "reject",
|
|
1476
|
+
"async": true,
|
|
1477
|
+
"params": [
|
|
1478
|
+
"input: RejectExpenseInput"
|
|
1479
|
+
],
|
|
1480
|
+
"returns": "Promise<this>"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"name": "reopen",
|
|
1484
|
+
"async": true,
|
|
1485
|
+
"params": [
|
|
1486
|
+
"input: ReopenExpenseInput"
|
|
1487
|
+
],
|
|
1488
|
+
"returns": "Promise<this>"
|
|
1489
|
+
},
|
|
1474
1490
|
{
|
|
1475
|
-
"name": "
|
|
1491
|
+
"name": "review",
|
|
1476
1492
|
"async": true,
|
|
1477
|
-
"
|
|
1493
|
+
"params": [
|
|
1494
|
+
"input: ReviewExpenseInput"
|
|
1495
|
+
],
|
|
1496
|
+
"returns": "Promise<this>"
|
|
1478
1497
|
},
|
|
1479
1498
|
{
|
|
1480
1499
|
"name": "save",
|
|
@@ -1483,11 +1502,25 @@
|
|
|
1483
1502
|
"options?: SmrtSaveOptions"
|
|
1484
1503
|
],
|
|
1485
1504
|
"returns": "Promise<this>"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "setFinancialBreakdown",
|
|
1508
|
+
"params": [
|
|
1509
|
+
"value: ExpenseFinancialBreakdown | null"
|
|
1510
|
+
],
|
|
1511
|
+
"returns": "void"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "setRefundRecipient",
|
|
1515
|
+
"params": [
|
|
1516
|
+
"value: ExpenseRefundRecipient | null"
|
|
1517
|
+
],
|
|
1518
|
+
"returns": "void"
|
|
1486
1519
|
}
|
|
1487
1520
|
],
|
|
1488
1521
|
"tenant": {
|
|
1489
1522
|
"scoped": true,
|
|
1490
|
-
"mode": "
|
|
1523
|
+
"mode": "optional",
|
|
1491
1524
|
"field": "tenantId"
|
|
1492
1525
|
},
|
|
1493
1526
|
"conflictColumns": [
|
|
@@ -1499,174 +1532,143 @@
|
|
|
1499
1532
|
"withheldSurfaces": [
|
|
1500
1533
|
{
|
|
1501
1534
|
"kind": "api",
|
|
1502
|
-
"operation": "
|
|
1503
|
-
"code": "
|
|
1504
|
-
"reason": "
|
|
1505
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
1506
|
-
}
|
|
1507
|
-
],
|
|
1508
|
-
"relationshipFeatures": [
|
|
1509
|
-
"foreignKey",
|
|
1510
|
-
"uuidColumns"
|
|
1511
|
-
],
|
|
1512
|
-
"tags": [],
|
|
1513
|
-
"risks": []
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
"name": "ExpenseAllocationBilling",
|
|
1517
|
-
"qualifiedName": "@happyvertical/smrt-expenses:ExpenseAllocationBilling",
|
|
1518
|
-
"collection": "expenseallocationbillings",
|
|
1519
|
-
"description": "Persisted command-owned ExpenseAllocationBilling evidence.",
|
|
1520
|
-
"tableName": "expense_allocation_billings",
|
|
1521
|
-
"packageName": "@happyvertical/smrt-expenses",
|
|
1522
|
-
"extends": "SmrtObject",
|
|
1523
|
-
"fields": [
|
|
1524
|
-
{
|
|
1525
|
-
"name": "tenantId",
|
|
1526
|
-
"type": "text",
|
|
1527
|
-
"required": true,
|
|
1528
|
-
"columnType": "UUID"
|
|
1535
|
+
"operation": "completeSupplierPayableBasis",
|
|
1536
|
+
"code": "not-included",
|
|
1537
|
+
"reason": "not listed in api.include",
|
|
1538
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1529
1539
|
},
|
|
1530
1540
|
{
|
|
1531
|
-
"
|
|
1532
|
-
"
|
|
1533
|
-
"
|
|
1534
|
-
"
|
|
1535
|
-
"
|
|
1541
|
+
"kind": "api",
|
|
1542
|
+
"operation": "getCostBasis",
|
|
1543
|
+
"code": "not-included",
|
|
1544
|
+
"reason": "not listed in api.include",
|
|
1545
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1536
1546
|
},
|
|
1537
1547
|
{
|
|
1538
|
-
"
|
|
1539
|
-
"
|
|
1540
|
-
"
|
|
1541
|
-
"
|
|
1542
|
-
"
|
|
1548
|
+
"kind": "api",
|
|
1549
|
+
"operation": "getCostObject",
|
|
1550
|
+
"code": "not-included",
|
|
1551
|
+
"reason": "not listed in api.include",
|
|
1552
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1543
1553
|
},
|
|
1544
1554
|
{
|
|
1545
|
-
"
|
|
1546
|
-
"
|
|
1547
|
-
"
|
|
1548
|
-
"
|
|
1549
|
-
"
|
|
1555
|
+
"kind": "api",
|
|
1556
|
+
"operation": "getFinancialBreakdown",
|
|
1557
|
+
"code": "not-included",
|
|
1558
|
+
"reason": "not listed in api.include",
|
|
1559
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1550
1560
|
},
|
|
1551
1561
|
{
|
|
1552
|
-
"
|
|
1553
|
-
"
|
|
1554
|
-
"
|
|
1555
|
-
"
|
|
1562
|
+
"kind": "api",
|
|
1563
|
+
"operation": "getRefundPosition",
|
|
1564
|
+
"code": "not-included",
|
|
1565
|
+
"reason": "not listed in api.include",
|
|
1566
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1556
1567
|
},
|
|
1557
1568
|
{
|
|
1558
|
-
"
|
|
1559
|
-
"
|
|
1560
|
-
"
|
|
1561
|
-
"
|
|
1569
|
+
"kind": "api",
|
|
1570
|
+
"operation": "getRefundRecipient",
|
|
1571
|
+
"code": "not-included",
|
|
1572
|
+
"reason": "not listed in api.include",
|
|
1573
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1562
1574
|
},
|
|
1563
1575
|
{
|
|
1564
|
-
"
|
|
1565
|
-
"
|
|
1566
|
-
"
|
|
1567
|
-
"
|
|
1568
|
-
"
|
|
1576
|
+
"kind": "api",
|
|
1577
|
+
"operation": "getReimbursementPosition",
|
|
1578
|
+
"code": "not-included",
|
|
1579
|
+
"reason": "not listed in api.include",
|
|
1580
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1569
1581
|
},
|
|
1570
1582
|
{
|
|
1571
|
-
"
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"
|
|
1583
|
+
"kind": "api",
|
|
1584
|
+
"operation": "getSupplierPayablePosition",
|
|
1585
|
+
"code": "not-included",
|
|
1586
|
+
"reason": "not listed in api.include",
|
|
1587
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1575
1588
|
},
|
|
1576
1589
|
{
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1590
|
+
"kind": "api",
|
|
1591
|
+
"operation": "isCountable",
|
|
1592
|
+
"code": "not-included",
|
|
1593
|
+
"reason": "not listed in api.include",
|
|
1594
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1581
1595
|
},
|
|
1582
1596
|
{
|
|
1583
|
-
"
|
|
1584
|
-
"
|
|
1585
|
-
"
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1597
|
+
"kind": "api",
|
|
1598
|
+
"operation": "isReimbursed",
|
|
1599
|
+
"code": "not-included",
|
|
1600
|
+
"reason": "not listed in api.include",
|
|
1601
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1588
1602
|
},
|
|
1589
1603
|
{
|
|
1590
|
-
"
|
|
1591
|
-
"
|
|
1592
|
-
"
|
|
1593
|
-
"
|
|
1594
|
-
|
|
1595
|
-
],
|
|
1596
|
-
"relationships": [
|
|
1597
|
-
{
|
|
1598
|
-
"name": "sourceExpenseId",
|
|
1599
|
-
"type": "foreignKey",
|
|
1600
|
-
"required": true,
|
|
1601
|
-
"related": "Expense",
|
|
1602
|
-
"columnType": "UUID"
|
|
1604
|
+
"kind": "api",
|
|
1605
|
+
"operation": "markDuplicate",
|
|
1606
|
+
"code": "not-included",
|
|
1607
|
+
"reason": "not listed in api.include",
|
|
1608
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1603
1609
|
},
|
|
1604
1610
|
{
|
|
1605
|
-
"
|
|
1606
|
-
"
|
|
1607
|
-
"
|
|
1608
|
-
"
|
|
1609
|
-
"
|
|
1611
|
+
"kind": "api",
|
|
1612
|
+
"operation": "markReimbursed",
|
|
1613
|
+
"code": "not-included",
|
|
1614
|
+
"reason": "not listed in api.include",
|
|
1615
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1610
1616
|
},
|
|
1611
1617
|
{
|
|
1612
|
-
"
|
|
1613
|
-
"
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1618
|
+
"kind": "api",
|
|
1619
|
+
"operation": "recordSupplierPayable",
|
|
1620
|
+
"code": "not-included",
|
|
1621
|
+
"reason": "not listed in api.include",
|
|
1622
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1617
1623
|
},
|
|
1618
1624
|
{
|
|
1619
|
-
"
|
|
1620
|
-
"
|
|
1621
|
-
"
|
|
1622
|
-
"
|
|
1623
|
-
"
|
|
1625
|
+
"kind": "api",
|
|
1626
|
+
"operation": "recordSupplierPayableEvent",
|
|
1627
|
+
"code": "not-included",
|
|
1628
|
+
"reason": "not listed in api.include",
|
|
1629
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1624
1630
|
},
|
|
1625
1631
|
{
|
|
1626
|
-
"
|
|
1627
|
-
"
|
|
1628
|
-
"
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
}
|
|
1632
|
-
],
|
|
1633
|
-
"methods": [
|
|
1634
|
-
"delete",
|
|
1635
|
-
"save"
|
|
1636
|
-
],
|
|
1637
|
-
"methodSignatures": [
|
|
1632
|
+
"kind": "api",
|
|
1633
|
+
"operation": "reject",
|
|
1634
|
+
"code": "not-included",
|
|
1635
|
+
"reason": "not listed in api.include",
|
|
1636
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1637
|
+
},
|
|
1638
1638
|
{
|
|
1639
|
-
"
|
|
1640
|
-
"
|
|
1641
|
-
"
|
|
1639
|
+
"kind": "api",
|
|
1640
|
+
"operation": "reopen",
|
|
1641
|
+
"code": "not-included",
|
|
1642
|
+
"reason": "not listed in api.include",
|
|
1643
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1642
1644
|
},
|
|
1643
1645
|
{
|
|
1644
|
-
"
|
|
1645
|
-
"
|
|
1646
|
-
"
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
}
|
|
1651
|
-
],
|
|
1652
|
-
"tenant": {
|
|
1653
|
-
"scoped": true,
|
|
1654
|
-
"mode": "required",
|
|
1655
|
-
"field": "tenantId"
|
|
1656
|
-
},
|
|
1657
|
-
"conflictColumns": [
|
|
1658
|
-
"tenant_id",
|
|
1659
|
-
"slug",
|
|
1660
|
-
"context"
|
|
1661
|
-
],
|
|
1662
|
-
"surfaces": [],
|
|
1663
|
-
"withheldSurfaces": [
|
|
1646
|
+
"kind": "api",
|
|
1647
|
+
"operation": "review",
|
|
1648
|
+
"code": "not-included",
|
|
1649
|
+
"reason": "not listed in api.include",
|
|
1650
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1651
|
+
},
|
|
1664
1652
|
{
|
|
1665
1653
|
"kind": "api",
|
|
1666
1654
|
"operation": "save",
|
|
1667
1655
|
"code": "lifecycle-method",
|
|
1668
1656
|
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
1669
|
-
"objectName": "@happyvertical/smrt-expenses:
|
|
1657
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "api",
|
|
1661
|
+
"operation": "setFinancialBreakdown",
|
|
1662
|
+
"code": "not-included",
|
|
1663
|
+
"reason": "not listed in api.include",
|
|
1664
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"kind": "api",
|
|
1668
|
+
"operation": "setRefundRecipient",
|
|
1669
|
+
"code": "not-included",
|
|
1670
|
+
"reason": "not listed in api.include",
|
|
1671
|
+
"objectName": "@happyvertical/smrt-expenses:Expense"
|
|
1670
1672
|
}
|
|
1671
1673
|
],
|
|
1672
1674
|
"relationshipFeatures": [
|