mintly-lib 2.5.0-preview → 2.7.0-preview
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/build/clients/financial-category-client.d.ts +10 -0
- package/build/clients/financial-category-client.d.ts.map +1 -1
- package/build/clients/financial-category-client.js +16 -0
- package/build/clients/financial-category-client.js.map +1 -1
- package/build/clients/financial-movement-client.d.ts +26 -0
- package/build/clients/financial-movement-client.d.ts.map +1 -0
- package/build/clients/financial-movement-client.js +43 -0
- package/build/clients/financial-movement-client.js.map +1 -0
- package/build/clients/index.d.ts +1 -0
- package/build/clients/index.d.ts.map +1 -1
- package/build/clients/index.js +3 -1
- package/build/clients/index.js.map +1 -1
- package/build/core/client/master-client.d.ts +2 -1
- package/build/core/client/master-client.d.ts.map +1 -1
- package/build/core/client/master-client.js +1 -0
- package/build/core/client/master-client.js.map +1 -1
- package/build/core/data/financial/financial-account-schema.d.ts +521 -0
- package/build/core/data/financial/financial-account-schema.d.ts.map +1 -1
- package/build/core/data/financial/financial-account-schema.js +40 -1
- package/build/core/data/financial/financial-account-schema.js.map +1 -1
- package/build/core/data/financial/financial-category-response.d.ts +5 -0
- package/build/core/data/financial/financial-category-response.d.ts.map +1 -0
- package/build/core/data/financial/financial-category-response.js +3 -0
- package/build/core/data/financial/financial-category-response.js.map +1 -0
- package/build/core/data/financial/financial-category-schema.d.ts +157 -0
- package/build/core/data/financial/financial-category-schema.d.ts.map +1 -1
- package/build/core/data/financial/financial-category-schema.js +25 -1
- package/build/core/data/financial/financial-category-schema.js.map +1 -1
- package/build/core/data/financial/financial-movement-response.d.ts +56 -0
- package/build/core/data/financial/financial-movement-response.d.ts.map +1 -0
- package/build/core/data/financial/financial-movement-response.js +3 -0
- package/build/core/data/financial/financial-movement-response.js.map +1 -0
- package/build/core/data/financial/financial-movement-schema.d.ts +175 -0
- package/build/core/data/financial/financial-movement-schema.d.ts.map +1 -1
- package/build/core/data/financial/financial-movement-schema.js +53 -1
- package/build/core/data/financial/financial-movement-schema.js.map +1 -1
- package/build/core/data/financial/index.d.ts +5 -3
- package/build/core/data/financial/index.d.ts.map +1 -1
- package/build/core/data/financial/index.js +7 -1
- package/build/core/data/financial/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-account-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CACH,CAAC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ACnC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxC,CAAC,CAAC,OAAO,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"financial-account-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAA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Q,EAAE;IACZ,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACjE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxC,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACjE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC;QAClB,oBAAoB,CAAC,IAAI;QACzB,oBAAoB,CAAC,IAAI;QACzB,oBAAoB,CAAC,aAAa;KACnC,CAAC;CACH,CAAC,CAAA;AAEW,QAAA,4BAA4B,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;IACzD,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-category-response.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-response.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-category-response.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-response.ts"],"names":[],"mappings":""}
|
|
@@ -187,4 +187,161 @@ export declare const financialCategoryUpdateSchema: import("@ascendance-hub/sapp
|
|
|
187
187
|
operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature | undefined, OperationalNature | undefined>;
|
|
188
188
|
status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus | undefined, RecordStatus | undefined>;
|
|
189
189
|
}>>;
|
|
190
|
+
export declare const financialCategoryInsertSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
191
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
192
|
+
type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
|
|
193
|
+
behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
|
|
194
|
+
operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
|
|
195
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
|
|
196
|
+
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
197
|
+
isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
198
|
+
usage: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
199
|
+
lastUsedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
200
|
+
history: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
201
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
202
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
203
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
204
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
205
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
206
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
207
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
208
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
209
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
210
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
211
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
212
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
213
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
214
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
215
|
+
}>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
216
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
217
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
218
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
219
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
220
|
+
}>[] | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
221
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
222
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
223
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
224
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
225
|
+
}>[] | undefined>;
|
|
226
|
+
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
227
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
228
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
229
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
230
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
231
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
232
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
233
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
234
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
235
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
236
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
237
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
238
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
239
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
240
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
241
|
+
}> | undefined>;
|
|
242
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
243
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
244
|
+
type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
|
|
245
|
+
behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
|
|
246
|
+
operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
|
|
247
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
|
|
248
|
+
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
249
|
+
isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
250
|
+
usage: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
251
|
+
lastUsedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
252
|
+
history: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
253
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
254
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
255
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
256
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
257
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
258
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
259
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
260
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
261
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
262
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
263
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
264
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
265
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
266
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
267
|
+
}>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
268
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
269
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
270
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
271
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
272
|
+
}>[] | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
273
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
274
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
275
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
276
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
277
|
+
}>[] | undefined>;
|
|
278
|
+
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
279
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
280
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
281
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
282
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
283
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
284
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
285
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
286
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
287
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
288
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
289
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
290
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
291
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
292
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
293
|
+
}> | undefined>;
|
|
294
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
295
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
296
|
+
type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
|
|
297
|
+
behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
|
|
298
|
+
operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
|
|
299
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
|
|
300
|
+
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
301
|
+
isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
302
|
+
usage: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
303
|
+
lastUsedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
304
|
+
history: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
305
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
306
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
307
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
308
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
309
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
310
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
311
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
312
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
313
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
314
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
315
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
316
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
317
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
318
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
319
|
+
}>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
320
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
321
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
322
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
323
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
324
|
+
}>[] | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
325
|
+
at: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
326
|
+
by: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
327
|
+
action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
328
|
+
detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
329
|
+
}>[] | undefined>;
|
|
330
|
+
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
331
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
332
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
333
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
334
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
335
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
336
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
337
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
338
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
339
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
340
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
341
|
+
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
342
|
+
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
343
|
+
createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
344
|
+
updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
345
|
+
}> | undefined>;
|
|
346
|
+
}>>;
|
|
190
347
|
//# sourceMappingURL=financial-category-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-category-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAK/C,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBlC,CAAA;AAMF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;GAM9B,CAAA"}
|
|
1
|
+
{"version":3,"file":"financial-category-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAK/C,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBlC,CAAA;AAMF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;GAM9B,CAAA;AAQZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBxC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.financialCategoryUpdateSchema = exports.financialCategorySchema = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = void 0;
|
|
3
|
+
exports.financialCategoryInsertSchema = exports.financialCategoryUpdateSchema = exports.financialCategorySchema = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = void 0;
|
|
4
4
|
const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
|
|
5
5
|
const status_1 = require("../common/status");
|
|
6
6
|
const audit_1 = require("../common/audit");
|
|
@@ -51,4 +51,28 @@ exports.financialCategoryUpdateSchema = s.object({
|
|
|
51
51
|
operationalNature: s.type().enum(OperationalNature),
|
|
52
52
|
status: s.type().enum(status_1.RecordStatus),
|
|
53
53
|
}).partial();
|
|
54
|
+
// Schema de INSERT (POST /financial-categories). Diferente do schema completo
|
|
55
|
+
// (entity), os campos que o servidor computa/força ficam OPCIONAIS — assim o
|
|
56
|
+
// client não precisa enviá-los (audit é preenchido no servidor; restaurantId vem
|
|
57
|
+
// do RequestContext; isSystem/usage/history são forçados no repositório). Mantém
|
|
58
|
+
// compatibilidade com clients que ainda enviam esses campos, e resolve o
|
|
59
|
+
// VALIDATION_ERROR de quando o `audit` era obrigatório no insert.
|
|
60
|
+
exports.financialCategoryInsertSchema = s.object({
|
|
61
|
+
name: s.string(),
|
|
62
|
+
type: s.type().enum(CategoryType),
|
|
63
|
+
behavior: s.type().enum(CategoryBehavior),
|
|
64
|
+
operationalNature: s.type().enum(OperationalNature),
|
|
65
|
+
status: s.type().enum(status_1.RecordStatus),
|
|
66
|
+
restaurantId: s.string().optional(),
|
|
67
|
+
isSystem: s.boolean().optional(),
|
|
68
|
+
usage: s.number().int().optional(),
|
|
69
|
+
lastUsedAt: s.date().coerce().optional(),
|
|
70
|
+
history: s.array(s.object({
|
|
71
|
+
at: s.date().coerce(),
|
|
72
|
+
by: s.string(),
|
|
73
|
+
action: s.string(),
|
|
74
|
+
detail: s.string().optional(),
|
|
75
|
+
})).optional(),
|
|
76
|
+
audit: audit_1.auditSchema.optional(),
|
|
77
|
+
});
|
|
54
78
|
//# sourceMappingURL=financial-category-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-category-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAEY,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IA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AC;IACzC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;CACpC,CAAC,CAAC,OAAO,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"financial-category-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAEY,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACzC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,QAAQ,EAAE,CAAC,CA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,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACzC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CACH,CAAC,QAAQ,EAAE;IACZ,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { MovementDirection, MovementStatus, PaymentMethod, MovementOrigin, CounterpartyKind } from './financial-movement-schema';
|
|
2
|
+
/** Contraparte (cliente/fornecedor) enviada no request. */
|
|
3
|
+
export interface MovementCounterpartyInput {
|
|
4
|
+
name: string;
|
|
5
|
+
kind: CounterpartyKind;
|
|
6
|
+
refId?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Corpo de POST /financial-movements. O client envia `accountId`/`categoryId`
|
|
10
|
+
* (não os snapshots): o servidor resolve conta+categoria vivas, monta os
|
|
11
|
+
* Extended References e computa fee/net/data-prevista na transação.
|
|
12
|
+
*/
|
|
13
|
+
export interface RegisterMovementRequest {
|
|
14
|
+
direction: MovementDirection;
|
|
15
|
+
title: string;
|
|
16
|
+
grossValue: number;
|
|
17
|
+
date: string | Date;
|
|
18
|
+
accountId: string;
|
|
19
|
+
categoryId: string;
|
|
20
|
+
paymentMethod: PaymentMethod;
|
|
21
|
+
status?: MovementStatus;
|
|
22
|
+
counterparty?: MovementCounterpartyInput;
|
|
23
|
+
fiscalNote?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
origin?: MovementOrigin;
|
|
26
|
+
/** Confirma persistir uma possível duplicata (<2min). */
|
|
27
|
+
confirmDuplicate?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** Corpo de PATCH /financial-movements/:id. `direction` é imutável. */
|
|
30
|
+
export interface UpdateMovementRequest {
|
|
31
|
+
title?: string;
|
|
32
|
+
grossValue?: number;
|
|
33
|
+
date?: string | Date;
|
|
34
|
+
paymentMethod?: PaymentMethod;
|
|
35
|
+
status?: MovementStatus;
|
|
36
|
+
accountId?: string;
|
|
37
|
+
categoryId?: string;
|
|
38
|
+
counterparty?: MovementCounterpartyInput;
|
|
39
|
+
fiscalNote?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Filtros de GET /financial-movements. */
|
|
43
|
+
export interface MovementListQuery {
|
|
44
|
+
q?: string;
|
|
45
|
+
direction?: MovementDirection;
|
|
46
|
+
status?: MovementStatus;
|
|
47
|
+
dateFrom?: string | Date;
|
|
48
|
+
dateTo?: string | Date;
|
|
49
|
+
page?: number;
|
|
50
|
+
size?: number;
|
|
51
|
+
}
|
|
52
|
+
/** Resposta de ações que retornam apenas a mensagem ao usuário (ex.: recompute). */
|
|
53
|
+
export interface FinancialMovementActionResult {
|
|
54
|
+
message: string;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=financial-movement-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-movement-response.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,gBAAgB,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,iBAAiB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,aAAa,CAAA;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,YAAY,CAAC,EAAE,yBAAyB,CAAA;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,yBAAyB,CAAA;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,oFAAoF;AACpF,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-movement-response.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-response.ts"],"names":[],"mappings":""}
|
|
@@ -1017,4 +1017,179 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
|
|
|
1017
1017
|
type: import("@ascendance-hub/sapphire-core").LiteralField<CategoryType.Expense, CategoryType.Expense, CategoryType.Expense>;
|
|
1018
1018
|
}>>;
|
|
1019
1019
|
}>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Schema de REGISTRO (POST /financial-movements). NÃO é o schema da entity: o
|
|
1022
|
+
* client envia `accountId`/`categoryId` (não os snapshots), e o servidor resolve
|
|
1023
|
+
* conta+categoria vivas, monta os Extended References e computa fee/net/data
|
|
1024
|
+
* prevista dentro da transação. Espelha o `RegisterMovementInput` da API.
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const registerMovementSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1027
|
+
direction: import("@ascendance-hub/sapphire-core").EnumField<MovementDirection, MovementDirection, MovementDirection>;
|
|
1028
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1029
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
|
|
1030
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
1031
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1032
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1033
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
|
|
1034
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1035
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1036
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1037
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1038
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1039
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1040
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1041
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1042
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1043
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1044
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1045
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1046
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1047
|
+
}> | undefined>;
|
|
1048
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1049
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1050
|
+
origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
|
|
1051
|
+
confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
1052
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1053
|
+
direction: import("@ascendance-hub/sapphire-core").EnumField<MovementDirection, MovementDirection, MovementDirection>;
|
|
1054
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1055
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
|
|
1056
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
1057
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1058
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1059
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
|
|
1060
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1061
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1062
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1063
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1064
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1065
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1066
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1067
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1068
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1069
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1070
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1071
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1072
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1073
|
+
}> | undefined>;
|
|
1074
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1075
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1076
|
+
origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
|
|
1077
|
+
confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
1078
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1079
|
+
direction: import("@ascendance-hub/sapphire-core").EnumField<MovementDirection, MovementDirection, MovementDirection>;
|
|
1080
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1081
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
|
|
1082
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
1083
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1084
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1085
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
|
|
1086
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1087
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1088
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1089
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1090
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1091
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1092
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1093
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1094
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1095
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1096
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1097
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1098
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1099
|
+
}> | undefined>;
|
|
1100
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1101
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1102
|
+
origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
|
|
1103
|
+
confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
|
|
1104
|
+
}>>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Schema de EDIÇÃO (PATCH /financial-movements/:id). Todos os campos opcionais;
|
|
1107
|
+
* `direction` é imutável (não entra aqui). Espelha o `UpdateMovementInput`.
|
|
1108
|
+
*/
|
|
1109
|
+
export declare const updateMovementSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1110
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1111
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
1112
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
1113
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod | undefined, PaymentMethod | undefined>;
|
|
1114
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1115
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1116
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1117
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1118
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1119
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1120
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1121
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1122
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1123
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1124
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1125
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1126
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1127
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1128
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1129
|
+
}> | undefined>;
|
|
1130
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1131
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1132
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1133
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1134
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
1135
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
1136
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod | undefined, PaymentMethod | undefined>;
|
|
1137
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1138
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1139
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1140
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1141
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1142
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1143
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1144
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1145
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1146
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1147
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1148
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1149
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1150
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1151
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1152
|
+
}> | undefined>;
|
|
1153
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1154
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1155
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1156
|
+
title: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1157
|
+
grossValue: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
|
|
1158
|
+
date: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
1159
|
+
paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod | undefined, PaymentMethod | undefined>;
|
|
1160
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus | undefined, MovementStatus | undefined>;
|
|
1161
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1162
|
+
categoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1163
|
+
counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1164
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1165
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1166
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1167
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1168
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1169
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1170
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1171
|
+
}> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1172
|
+
name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1173
|
+
kind: import("@ascendance-hub/sapphire-core").EnumField<CounterpartyKind, CounterpartyKind, CounterpartyKind>;
|
|
1174
|
+
refId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1175
|
+
}> | undefined>;
|
|
1176
|
+
fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1177
|
+
description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
|
|
1178
|
+
}>>;
|
|
1179
|
+
/** Corpo de PATCH /financial-movements/:id/status. */
|
|
1180
|
+
export declare const changeMovementStatusSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1181
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus, MovementStatus>;
|
|
1182
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1183
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus, MovementStatus>;
|
|
1184
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1185
|
+
status: import("@ascendance-hub/sapphire-core").EnumField<MovementStatus, MovementStatus, MovementStatus>;
|
|
1186
|
+
}>>;
|
|
1187
|
+
/** Corpo de POST /financial-movements/recompute-balances. */
|
|
1188
|
+
export declare const recomputeBalancesSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
1189
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1190
|
+
}, import("@ascendance-hub/sapphire-core").ObjectOutput<{
|
|
1191
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1192
|
+
}>, import("@ascendance-hub/sapphire-core").ObjectInput<{
|
|
1193
|
+
accountId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
1194
|
+
}>>;
|
|
1020
1195
|
//# sourceMappingURL=financial-movement-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-movement-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAI1D;;;;;;;;;GASG;AAEH,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,GAAG,QAAQ;CACZ;AAED,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,aAAa,kBAAkB;CAChC;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAsFD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGlC,CAAA"}
|
|
1
|
+
{"version":3,"file":"financial-movement-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAI1D;;;;;;;;;GASG;AAEH,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,GAAG,QAAQ;CACZ;AAED,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,aAAa,kBAAkB;CAChC;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,KAAK,UAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGlC,CAAA;AASF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAejC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWrB,CAAA;AAEZ,sDAAsD;AACtD,eAAO,MAAM,0BAA0B;;;;;;GAErC,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB;;;;;;GAElC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.financialMovementSchema = exports.CounterpartyKind = exports.MovementOrigin = exports.PaymentMethod = exports.MovementStatus = exports.MovementDirection = void 0;
|
|
3
|
+
exports.recomputeBalancesSchema = exports.changeMovementStatusSchema = exports.updateMovementSchema = exports.registerMovementSchema = exports.financialMovementSchema = exports.CounterpartyKind = exports.MovementOrigin = exports.PaymentMethod = exports.MovementStatus = exports.MovementDirection = void 0;
|
|
4
4
|
const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
|
|
5
5
|
const audit_1 = require("../common/audit");
|
|
6
6
|
const financial_account_schema_1 = require("./financial-account-schema");
|
|
@@ -120,4 +120,56 @@ exports.financialMovementSchema = s.type().union([
|
|
|
120
120
|
inMovementSchema,
|
|
121
121
|
outMovementSchema,
|
|
122
122
|
]);
|
|
123
|
+
// Sub-doc opcional da contraparte no request (cliente/fornecedor).
|
|
124
|
+
const counterpartyRequestSchema = s.object({
|
|
125
|
+
name: s.string(),
|
|
126
|
+
kind: s.type().enum(CounterpartyKind),
|
|
127
|
+
refId: s.string().optional(),
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* Schema de REGISTRO (POST /financial-movements). NÃO é o schema da entity: o
|
|
131
|
+
* client envia `accountId`/`categoryId` (não os snapshots), e o servidor resolve
|
|
132
|
+
* conta+categoria vivas, monta os Extended References e computa fee/net/data
|
|
133
|
+
* prevista dentro da transação. Espelha o `RegisterMovementInput` da API.
|
|
134
|
+
*/
|
|
135
|
+
exports.registerMovementSchema = s.object({
|
|
136
|
+
direction: s.type().enum(MovementDirection),
|
|
137
|
+
title: s.string().max(120),
|
|
138
|
+
grossValue: s.number().positive(),
|
|
139
|
+
date: s.date().coerce(),
|
|
140
|
+
accountId: s.string(),
|
|
141
|
+
categoryId: s.string(),
|
|
142
|
+
paymentMethod: s.type().enum(PaymentMethod),
|
|
143
|
+
status: s.type().enum(MovementStatus).optional(),
|
|
144
|
+
counterparty: counterpartyRequestSchema.optional(),
|
|
145
|
+
fiscalNote: s.string().optional(),
|
|
146
|
+
description: s.string().max(500).optional(),
|
|
147
|
+
origin: s.type().enum(MovementOrigin).optional(),
|
|
148
|
+
// Confirmação explícita para persistir uma possível duplicata (<2min).
|
|
149
|
+
confirmDuplicate: s.boolean().optional(),
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* Schema de EDIÇÃO (PATCH /financial-movements/:id). Todos os campos opcionais;
|
|
153
|
+
* `direction` é imutável (não entra aqui). Espelha o `UpdateMovementInput`.
|
|
154
|
+
*/
|
|
155
|
+
exports.updateMovementSchema = s.object({
|
|
156
|
+
title: s.string().max(120),
|
|
157
|
+
grossValue: s.number().positive(),
|
|
158
|
+
date: s.date().coerce(),
|
|
159
|
+
paymentMethod: s.type().enum(PaymentMethod),
|
|
160
|
+
status: s.type().enum(MovementStatus),
|
|
161
|
+
accountId: s.string(),
|
|
162
|
+
categoryId: s.string(),
|
|
163
|
+
counterparty: counterpartyRequestSchema,
|
|
164
|
+
fiscalNote: s.string(),
|
|
165
|
+
description: s.string().max(500),
|
|
166
|
+
}).partial();
|
|
167
|
+
/** Corpo de PATCH /financial-movements/:id/status. */
|
|
168
|
+
exports.changeMovementStatusSchema = s.object({
|
|
169
|
+
status: s.type().enum(MovementStatus),
|
|
170
|
+
});
|
|
171
|
+
/** Corpo de POST /financial-movements/recompute-balances. */
|
|
172
|
+
exports.recomputeBalancesSchema = s.object({
|
|
173
|
+
accountId: s.string(),
|
|
174
|
+
});
|
|
123
175
|
//# sourceMappingURL=financial-movement-schema.js.map
|