mintly-lib 2.12.0-preview → 2.14.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.
Files changed (33) hide show
  1. package/build/clients/financial-category-client.d.ts +8 -1
  2. package/build/clients/financial-category-client.d.ts.map +1 -1
  3. package/build/clients/financial-category-client.js +19 -0
  4. package/build/clients/financial-category-client.js.map +1 -1
  5. package/build/clients/report-client.d.ts +5 -2
  6. package/build/clients/report-client.d.ts.map +1 -1
  7. package/build/clients/report-client.js +7 -2
  8. package/build/clients/report-client.js.map +1 -1
  9. package/build/core/data/financial/financial-category-response.d.ts +8 -0
  10. package/build/core/data/financial/financial-category-response.d.ts.map +1 -1
  11. package/build/core/data/financial/financial-category-schema.d.ts +244 -0
  12. package/build/core/data/financial/financial-category-schema.d.ts.map +1 -1
  13. package/build/core/data/financial/financial-category-schema.js +17 -1
  14. package/build/core/data/financial/financial-category-schema.js.map +1 -1
  15. package/build/core/data/financial/financial-movement-response.d.ts +8 -1
  16. package/build/core/data/financial/financial-movement-response.d.ts.map +1 -1
  17. package/build/core/data/financial/financial-movement-schema.d.ts +132 -0
  18. package/build/core/data/financial/financial-movement-schema.d.ts.map +1 -1
  19. package/build/core/data/financial/financial-movement-schema.js +20 -1
  20. package/build/core/data/financial/financial-movement-schema.js.map +1 -1
  21. package/build/core/data/financial/index.d.ts +3 -3
  22. package/build/core/data/financial/index.d.ts.map +1 -1
  23. package/build/core/data/financial/index.js +5 -1
  24. package/build/core/data/financial/index.js.map +1 -1
  25. package/build/core/data/reports/expenses-response.d.ts +86 -0
  26. package/build/core/data/reports/expenses-response.d.ts.map +1 -0
  27. package/build/core/data/reports/expenses-response.js +3 -0
  28. package/build/core/data/reports/expenses-response.js.map +1 -0
  29. package/build/core/data/reports/index.d.ts +1 -0
  30. package/build/core/data/reports/index.d.ts.map +1 -1
  31. package/build/core/data/reports/index.js +1 -0
  32. package/build/core/data/reports/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -3,7 +3,7 @@ import type { Insertable, Findable, Listable, Updatable } from '../core/client/b
3
3
  import type { FindAllRequestDto } from '../core/data/request/pagination';
4
4
  import type { Headers } from '../core/data/request/headers';
5
5
  import type { FinancialCategory } from '../core/data/financial/financial-category-entity';
6
- import type { FinancialCategoryActionResult } from '../core/data/financial/financial-category-response';
6
+ import type { FinancialCategoryActionResult, Subcategory, SubcategoryRequest } from '../core/data/financial/financial-category-response';
7
7
  import { MovementDirection } from '../core/data/financial/financial-movement-schema';
8
8
  /**
9
9
  * A rota /financial-categories NÃO expõe GET /:id nem DELETE. COMPÕE o
@@ -22,5 +22,12 @@ export declare class FinancialCategoryClient implements Insertable<FinancialCate
22
22
  reactivateUpdate(id: string, headers: Headers): Promise<ResponseDto<FinancialCategoryActionResult>>;
23
23
  /** Sugestão de categorias por direção do movimento (SuggestCategoriesQuery). Read-only. */
24
24
  suggestions(direction: MovementDirection, headers: Headers): Promise<ResponseDto<FinancialCategory[]>>;
25
+ /** Cria uma subcategoria (funciona também em categoria de sistema). */
26
+ addSubcategory(categoryId: string, body: SubcategoryRequest, headers: Headers): Promise<ResponseDto<Subcategory>>;
27
+ /** Renomeia a subcategoria (lançamentos já gravados mantêm o nome antigo). */
28
+ updateSubcategory(categoryId: string, subcategoryId: string, body: SubcategoryRequest, headers: Headers): Promise<ResponseDto<Subcategory>>;
29
+ /** Inativa a subcategoria (some dos novos lançamentos; nada é apagado). */
30
+ inactivateSubcategory(categoryId: string, subcategoryId: string, headers: Headers): Promise<ResponseDto<Subcategory>>;
31
+ reactivateSubcategory(categoryId: string, subcategoryId: string, headers: Headers): Promise<ResponseDto<Subcategory>>;
25
32
  }
26
33
  //# sourceMappingURL=financial-category-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"financial-category-client.d.ts","sourceRoot":"","sources":["../../src/clients/financial-category-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,SAAS,CAAA;AAElD,OAAO,KAA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tH,qBAAqB,CAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;CAI7H"}
@@ -39,6 +39,25 @@ class FinancialCategoryClient {
39
39
  const response = await this.http.connection.get('/suggestions', (0, core_1.withHeaders)(headers, { params: { direction } }));
40
40
  return response.data;
41
41
  }
42
+ /** Cria uma subcategoria (funciona também em categoria de sistema). */
43
+ async addSubcategory(categoryId, body, headers) {
44
+ const response = await this.http.connection.post(`/${categoryId}/subcategories`, body, (0, core_1.withHeaders)(headers));
45
+ return response.data;
46
+ }
47
+ /** Renomeia a subcategoria (lançamentos já gravados mantêm o nome antigo). */
48
+ async updateSubcategory(categoryId, subcategoryId, body, headers) {
49
+ const response = await this.http.connection.patch(`/${categoryId}/subcategories/${subcategoryId}`, body, (0, core_1.withHeaders)(headers));
50
+ return response.data;
51
+ }
52
+ /** Inativa a subcategoria (some dos novos lançamentos; nada é apagado). */
53
+ async inactivateSubcategory(categoryId, subcategoryId, headers) {
54
+ const response = await this.http.connection.patch(`/${categoryId}/subcategories/${subcategoryId}/inactivate`, undefined, (0, core_1.withHeaders)(headers));
55
+ return response.data;
56
+ }
57
+ async reactivateSubcategory(categoryId, subcategoryId, headers) {
58
+ const response = await this.http.connection.patch(`/${categoryId}/subcategories/${subcategoryId}/reactivate`, undefined, (0, core_1.withHeaders)(headers));
59
+ return response.data;
60
+ }
42
61
  }
43
62
  exports.FinancialCategoryClient = FinancialCategoryClient;
44
63
  //# sourceMappingURL=financial-category-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"financial-category-client.js","sourceRoot":"","sources":["../../src/clients/financial-category-client.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAClD,sEAAgE;AAQhE;;;;GAIG;AACH,MAAa,uBAAuB;IAApC;QAEmB,SAAI,GAAG,IAAI,iCAAc,CAAoB,sBAAsB,CAAC,CAAA;IAmCvF,CAAC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CAAmC,cAAc,EAAE,IAAA,kBAAW,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAA;QAClJ,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;CACF;AArCD,0DAqCC"}
1
+ {"version":3,"file":"financial-category-client.js","sourceRoot":"","sources":["../../src/clients/financial-category-client.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAClD,sEAAgE;AAQhE;;;;GAIG;AACH,MAAa,uBAAuB;IAApC;QAEmB,SAAI,GAAG,IAAI,iCAAc,CAAoB,sBAAsB,CAAC,CAAA;IA0DvF,CAAC;IAxDC,MAAM,CAAE,IAAuB,EAAE,OAAgB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAE,MAAkC,EAAE,OAAgB;QACxD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IAED,OAAO,CAAE,MAA4C,EAAE,OAAgB;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,CAAE,EAAU,EAAE,IAAgC,EAAE,OAAgB;QACpE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;IAC5C,CAAC;IAED,yEAAyE;IACzE,KAAK,CAAC,gBAAgB,CAAE,EAAU,EAAE,OAAgB;QAClD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAA6C,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,IAAA,kBAAW,EAAC,OAAO,CAAC,CAAC,CAAA;QACnJ,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,oF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EAAE,aAAqB,EAAE,OAAgB;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAA2B,IAAI,UAAU,kBAAkB,aAAa,aAAa,EAAE,SAAS,EAAE,IAAA,kBAAW,EAAC,OAAO,CAAC,CAAC,CAAA;QACxK,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAE,UAAkB,EAAE,aAAqB,EAAE,OAAgB;QACtF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAA2B,IAAI,UAAU,kBAAkB,aAAa,aAAa,EAAE,SAAS,EAAE,IAAA,kBAAW,EAAC,OAAO,CAAC,CAAC,CAAA;QACxK,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;CACF;AA5DD,0DA4DC"}
@@ -2,10 +2,11 @@ import { ResponseDto } from '../core';
2
2
  import type { Headers } from '../core/data/request/headers';
3
3
  import type { CashFlowQuery, CashFlowReport } from '../core/data/reports/cash-flow-response';
4
4
  import type { ResultQuery, ResultReport } from '../core/data/reports/result-response';
5
+ import type { ExpensesQuery, ExpensesReport } from '../core/data/reports/expenses-response';
5
6
  /**
6
7
  * Relatórios de leitura (módulos novos). Só GETs próprios — compõe o
7
- * HttpBaseClient pela conexão, como o FinancialMovementClient. As próximas
8
- * fatias (result, expenses) entram aqui como métodos.
8
+ * HttpBaseClient pela conexão, como o FinancialMovementClient. A Visão Geral
9
+ * entra aqui como método.
9
10
  */
10
11
  export declare class ReportClient {
11
12
  private readonly http;
@@ -13,5 +14,7 @@ export declare class ReportClient {
13
14
  cashFlow(query: CashFlowQuery, headers: Headers): Promise<ResponseDto<CashFlowReport>>;
14
15
  /** Resultado (DRE) do mês: linhas, composição, ponto de equilíbrio, histórico e insights. */
15
16
  result(query: ResultQuery, headers: Headers): Promise<ResponseDto<ResultReport>>;
17
+ /** Custos & Despesas do mês (fatia A): total, CMV, prime cost, taxa de plataforma e categorias. */
18
+ expenses(query: ExpensesQuery, headers: Headers): Promise<ResponseDto<ExpensesReport>>;
16
19
  }
17
20
  //# sourceMappingURL=report-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"report-client.d.ts","sourceRoot":"","sources":["../../src/clients/report-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,SAAS,CAAA;AAElD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAErF;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgD;IAErE,oFAAoF;IAC9E,QAAQ,CAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAK7F,6FAA6F;IACvF,MAAM,CAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;CAIxF"}
1
+ {"version":3,"file":"report-client.d.ts","sourceRoot":"","sources":["../../src/clients/report-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,SAAS,CAAA;AAElD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAE3F;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgD;IAErE,oFAAoF;IAC9E,QAAQ,CAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAK7F,6FAA6F;IACvF,MAAM,CAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAKvF,mGAAmG;IAC7F,QAAQ,CAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;CAI9F"}
@@ -5,8 +5,8 @@ const core_1 = require("../core");
5
5
  const http_base_client_1 = require("../core/client/http-base-client");
6
6
  /**
7
7
  * Relatórios de leitura (módulos novos). Só GETs próprios — compõe o
8
- * HttpBaseClient pela conexão, como o FinancialMovementClient. As próximas
9
- * fatias (result, expenses) entram aqui como métodos.
8
+ * HttpBaseClient pela conexão, como o FinancialMovementClient. A Visão Geral
9
+ * entra aqui como método.
10
10
  */
11
11
  class ReportClient {
12
12
  constructor() {
@@ -22,6 +22,11 @@ class ReportClient {
22
22
  const response = await this.http.connection.get('/result', (0, core_1.withHeaders)(headers, { params: query }));
23
23
  return response.data;
24
24
  }
25
+ /** Custos & Despesas do mês (fatia A): total, CMV, prime cost, taxa de plataforma e categorias. */
26
+ async expenses(query, headers) {
27
+ const response = await this.http.connection.get('/expenses', (0, core_1.withHeaders)(headers, { params: query }));
28
+ return response.data;
29
+ }
25
30
  }
26
31
  exports.ReportClient = ReportClient;
27
32
  //# sourceMappingURL=report-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"report-client.js","sourceRoot":"","sources":["../../src/clients/report-client.ts"],"names":[],"mappings":";;;AAAA,kCAAkD;AAClD,sEAAgE;AAKhE;;;;GAIG;AACH,MAAa,YAAY;IAAzB;QACmB,SAAI,GAAG,IAAI,iCAAc,CAAiB,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AAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4B,SAAS,EAAE,IAAA,kBAAW,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;QAC9H,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,mGAAmG;IACnG,KAAK,CAAC,QAAQ,CAAE,KAAoB,EAAE,OAAgB;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAA8B,WAAW,EAAE,IAAA,kBAAW,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;QAClI,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;CACF;AApBD,oCAoBC"}
@@ -1,5 +1,13 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ import type { subcategorySchema } from './financial-category-schema';
1
3
  /** Resposta das rotas de ação (inactivate/reactivate) — apenas a mensagem ao usuário. */
2
4
  export interface FinancialCategoryActionResult {
3
5
  message: string;
4
6
  }
7
+ /** Subcategoria embutida na categoria (fatia 5). */
8
+ export type Subcategory = Infer<typeof subcategorySchema>;
9
+ /** Corpo de criação/renomeação de subcategoria. */
10
+ export interface SubcategoryRequest {
11
+ name: string;
12
+ }
5
13
  //# sourceMappingURL=financial-category-response.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"financial-category-response.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,yFAAyF;AACzF,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEzD,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -27,6 +27,40 @@ export declare enum OperationalNature {
27
27
  Operational = "operational",
28
28
  NonOperational = "nonOperational"
29
29
  }
30
+ /**
31
+ * Subcategoria (M4, fatia 5): detalhe da categoria — CMV/Insumos → Frango, Óleo…
32
+ * Embutida no documento da categoria (poucas, lidas junto, sem $lookup) e
33
+ * gerida só pelo sub-recurso /:id/subcategories. Só inativação, nunca apagada.
34
+ */
35
+ export declare const subcategorySchema: import("@ascendance-hub/sapphire-core").ObjectField<{
36
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
37
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
38
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
39
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
40
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
41
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
42
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
43
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
44
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
45
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
46
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
47
+ }>>;
48
+ /** Corpo de POST /financial-categories/:id/subcategories. */
49
+ export declare const subcategoryInsertSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
50
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
51
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
52
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
53
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
54
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
55
+ }>>;
56
+ /** Corpo de PATCH /financial-categories/:id/subcategories/:subId (status vai por inactivate/reactivate). */
57
+ export declare const subcategoryUpdateSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
58
+ name: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
59
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
60
+ name: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
61
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
62
+ name: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
63
+ }>>;
30
64
  export declare const financialCategorySchema: import("@ascendance-hub/sapphire-core").UnionField<(import("@ascendance-hub/sapphire-core").ObjectField<Omit<{
31
65
  restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
32
66
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -62,6 +96,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
62
96
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
63
97
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
64
98
  }>[] | undefined>;
99
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
100
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
101
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
102
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
103
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
104
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
105
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
106
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
107
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
108
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
109
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
110
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
111
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
112
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
113
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
114
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
115
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
116
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
117
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
118
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
119
+ }>[] | undefined>;
65
120
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
66
121
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
67
122
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -115,6 +170,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
115
170
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
116
171
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
117
172
  }>[] | undefined>;
173
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
174
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
175
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
176
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
177
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
178
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
179
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
180
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
181
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
182
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
183
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
184
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
185
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
186
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
187
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
188
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
189
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
190
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
191
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
192
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
193
+ }>[] | undefined>;
118
194
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
119
195
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
120
196
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -168,6 +244,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
168
244
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
169
245
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
170
246
  }>[] | undefined>;
247
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
248
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
249
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
250
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
251
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
252
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
253
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
254
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
255
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
256
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
257
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
258
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
259
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
260
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
261
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
262
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
263
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
264
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
265
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
266
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
267
+ }>[] | undefined>;
171
268
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
172
269
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
173
270
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -221,6 +318,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
221
318
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
222
319
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
223
320
  }>[] | undefined>;
321
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
322
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
323
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
324
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
325
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
326
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
327
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
328
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
329
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
330
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
331
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
332
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
333
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
334
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
335
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
336
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
337
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
338
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
339
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
340
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
341
+ }>[] | undefined>;
224
342
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
225
343
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
226
344
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -275,6 +393,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
275
393
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
276
394
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
277
395
  }>[] | undefined>;
396
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
397
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
398
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
399
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
400
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
401
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
402
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
403
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
404
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
405
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
406
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
407
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
408
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
409
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
410
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
411
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
412
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
413
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
414
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
415
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
416
+ }>[] | undefined>;
278
417
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
279
418
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
280
419
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -329,6 +468,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
329
468
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
330
469
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
331
470
  }>[] | undefined>;
471
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
472
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
473
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
474
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
475
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
476
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
477
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
478
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
479
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
480
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
481
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
482
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
483
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
484
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
485
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
486
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
487
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
488
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
489
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
490
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
491
+ }>[] | undefined>;
332
492
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
333
493
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
334
494
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -383,6 +543,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
383
543
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
384
544
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
385
545
  }>[] | undefined>;
546
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
547
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
548
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
549
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
550
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
551
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
552
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
553
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
554
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
555
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
556
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
557
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
558
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
559
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
560
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
561
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
562
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
563
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
564
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
565
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
566
+ }>[] | undefined>;
386
567
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
387
568
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
388
569
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -436,6 +617,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
436
617
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
437
618
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
438
619
  }>[] | undefined>;
620
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
621
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
622
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
623
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
624
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
625
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
626
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
627
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
628
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
629
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
630
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
631
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
632
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
633
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
634
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
635
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
636
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
637
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
638
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
639
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
640
+ }>[] | undefined>;
439
641
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
440
642
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
441
643
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -490,6 +692,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
490
692
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
491
693
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
492
694
  }>[] | undefined>;
695
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
696
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
697
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
698
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
699
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
700
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
701
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
702
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
703
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
704
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
705
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
706
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
707
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
708
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
709
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
710
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
711
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
712
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
713
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
714
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
715
+ }>[] | undefined>;
493
716
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
494
717
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
495
718
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -543,6 +766,27 @@ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-c
543
766
  action: import("@ascendance-hub/sapphire-core").StringField<string, string>;
544
767
  detail: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
545
768
  }>[] | undefined>;
769
+ subcategories: import("@ascendance-hub/sapphire-core").ArrayField<import("@ascendance-hub/sapphire-core").ObjectField<{
770
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
771
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
772
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
773
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
774
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
775
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
776
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
777
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
778
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
779
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
780
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
781
+ }>>, import("@ascendance-hub/sapphire-core").ObjectOutput<{
782
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
783
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
784
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
785
+ }>[], import("@ascendance-hub/sapphire-core").ObjectInput<{
786
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
787
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
788
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
789
+ }>[] | undefined>;
546
790
  audit: import("@ascendance-hub/sapphire-core").ObjectField<{
547
791
  createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
548
792
  updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
@@ -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;IACrB,yFAAyF;IACzF,KAAK,UAAU;CAChB;AAED;;;;;;;GAOG;AACH,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAoCD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiE,CAAA;AAMrG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;GAQ9B,CAAA;AAQZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBxC,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;IACrB,yFAAyF;IACzF,KAAK,UAAU;CAChB;AAED;;;;;;;GAOG;AACH,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;GAI5B,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB;;;;;;GAAyC,CAAA;AAE7E,4GAA4G;AAC5G,eAAO,MAAM,uBAAuB;;;;;;GAAmD,CAAA;AAsCvF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiE,CAAA;AAMrG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;GAQ9B,CAAA;AAQZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBxC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.financialCategoryInsertSchema = exports.financialCategoryUpdateSchema = exports.financialCategorySchema = exports.OperationalNature = exports.DreGroup = exports.CategoryBehavior = exports.CategoryType = void 0;
3
+ exports.financialCategoryInsertSchema = exports.financialCategoryUpdateSchema = exports.financialCategorySchema = exports.subcategoryUpdateSchema = exports.subcategoryInsertSchema = exports.subcategorySchema = exports.OperationalNature = exports.DreGroup = 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");
@@ -37,6 +37,20 @@ var OperationalNature;
37
37
  OperationalNature["Operational"] = "operational";
38
38
  OperationalNature["NonOperational"] = "nonOperational";
39
39
  })(OperationalNature || (exports.OperationalNature = OperationalNature = {}));
40
+ /**
41
+ * Subcategoria (M4, fatia 5): detalhe da categoria — CMV/Insumos → Frango, Óleo…
42
+ * Embutida no documento da categoria (poucas, lidas junto, sem $lookup) e
43
+ * gerida só pelo sub-recurso /:id/subcategories. Só inativação, nunca apagada.
44
+ */
45
+ exports.subcategorySchema = s.object({
46
+ _id: s.string(),
47
+ name: s.string().max(60),
48
+ status: s.type().enum(status_1.RecordStatus),
49
+ });
50
+ /** Corpo de POST /financial-categories/:id/subcategories. */
51
+ exports.subcategoryInsertSchema = s.object({ name: s.string().max(60) });
52
+ /** Corpo de PATCH /financial-categories/:id/subcategories/:subId (status vai por inactivate/reactivate). */
53
+ exports.subcategoryUpdateSchema = s.object({ name: s.string().max(60) }).partial();
40
54
  const baseCategorySchema = s.object({
41
55
  restaurantId: s.string(),
42
56
  name: s.string(),
@@ -54,6 +68,8 @@ const baseCategorySchema = s.object({
54
68
  action: s.string(),
55
69
  detail: s.string().optional(),
56
70
  })).default([]),
71
+ // Só muda pelo sub-recurso; os schemas de insert/update (estritos) não aceitam.
72
+ subcategories: s.array(exports.subcategorySchema).default([]),
57
73
  audit: audit_1.auditSchema,
58
74
  });
59
75
  // União discriminada por `type` (mesmo recurso do financialAccountSchema): só
@@ -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;AA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AAC,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"}
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,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,yFAAyF;IACzF,mCAAe,CAAA;AACjB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED;;;;;;;GAOG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,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AAE;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"}
@@ -1,4 +1,4 @@
1
- import type { MovementDirection, MovementStatus, PaymentMethod, MovementOrigin, CounterpartyKind } from './financial-movement-schema';
1
+ import type { MovementDirection, MovementStatus, PaymentMethod, MovementOrigin, CounterpartyKind, MovementChannel } from './financial-movement-schema';
2
2
  /** Contraparte (cliente/fornecedor) enviada no request. */
3
3
  export interface MovementCounterpartyInput {
4
4
  name: string;
@@ -25,6 +25,9 @@ export interface RegisterMovementRequest {
25
25
  origin?: MovementOrigin;
26
26
  /** Confirma persistir uma possível duplicata (<2min). */
27
27
  confirmDuplicate?: boolean;
28
+ /** Subcategoria da categoria escolhida; tem que estar ativa. */
29
+ subcategoryId?: string;
30
+ channel?: MovementChannel;
28
31
  }
29
32
  /**
30
33
  * Corpo de PATCH /financial-movements/:id/status. `settledAt` só vale quando o
@@ -47,6 +50,10 @@ export interface UpdateMovementRequest {
47
50
  counterparty?: MovementCounterpartyInput;
48
51
  fiscalNote?: string;
49
52
  description?: string;
53
+ /** `null` limpa; a API valida o documento resultante, não este schema. */
54
+ subcategoryId?: string | null;
55
+ /** `null` limpa (volta ao canal efetivo). */
56
+ channel?: MovementChannel | null;
50
57
  }
51
58
  /** Filtros de GET /financial-movements. */
52
59
  export interface MovementListQuery {
@@ -1 +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,E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AC7B,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"}
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,EAChB,eAAe,EAChB,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;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;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;IACpB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;CACjC;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"}
@@ -45,6 +45,16 @@ export declare enum MovementStatusSource {
45
45
  Auto = "auto",
46
46
  Manual = "manual"
47
47
  }
48
+ /**
49
+ * Canal da movimentação (M3, fatia 5). Opcional: ausente, os relatórios usam o
50
+ * canal efetivo (entrada em plataforma → delivery; outra entrada → dineIn;
51
+ * saída → shared). `shared` = da casa inteira (aluguel, energia, contador).
52
+ */
53
+ export declare enum MovementChannel {
54
+ DineIn = "dineIn",
55
+ Delivery = "delivery",
56
+ Shared = "shared"
57
+ }
48
58
  export declare enum CounterpartyKind {
49
59
  Client = "client",
50
60
  Supplier = "supplier"
@@ -97,6 +107,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
97
107
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
98
108
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
99
109
  }>>;
110
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
111
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
112
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
113
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
114
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
115
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
116
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
117
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
118
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
119
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
120
+ }> | undefined>;
100
121
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
101
122
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
102
123
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -219,6 +240,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
219
240
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
220
241
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
221
242
  }>>;
243
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
244
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
245
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
246
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
247
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
248
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
249
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
250
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
251
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
252
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
253
+ }> | undefined>;
222
254
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
223
255
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
224
256
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -341,6 +373,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
341
373
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
342
374
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
343
375
  }>>;
376
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
377
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
378
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
379
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
380
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
381
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
382
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
383
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
384
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
385
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
386
+ }> | undefined>;
344
387
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
345
388
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
346
389
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -463,6 +506,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
463
506
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
464
507
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
465
508
  }>>;
509
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
510
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
511
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
512
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
513
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
514
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
515
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
516
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
517
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
518
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
519
+ }> | undefined>;
466
520
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
467
521
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
468
522
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -585,6 +639,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
585
639
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
586
640
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
587
641
  }>>;
642
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
643
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
644
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
645
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
646
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
647
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
648
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
649
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
650
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
651
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
652
+ }> | undefined>;
588
653
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
589
654
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
590
655
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -707,6 +772,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
707
772
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
708
773
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
709
774
  }>>;
775
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
776
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
777
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
778
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
779
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
780
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
781
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
782
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
783
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
784
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
785
+ }> | undefined>;
710
786
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
711
787
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
712
788
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -829,6 +905,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
829
905
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
830
906
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
831
907
  }>>;
908
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
909
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
910
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
911
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
912
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
913
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
914
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
915
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
916
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
917
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
918
+ }> | undefined>;
832
919
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
833
920
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
834
921
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -951,6 +1038,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
951
1038
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
952
1039
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
953
1040
  }>>;
1041
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1042
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
1043
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1044
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1045
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
1046
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1047
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1048
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
1049
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1050
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1051
+ }> | undefined>;
954
1052
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
955
1053
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
956
1054
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -1073,6 +1171,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
1073
1171
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1074
1172
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
1075
1173
  }>>;
1174
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1175
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
1176
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1177
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1178
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
1179
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1180
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1181
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
1182
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1183
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1184
+ }> | undefined>;
1076
1185
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
1077
1186
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
1078
1187
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -1195,6 +1304,17 @@ export declare const financialMovementSchema: import("@ascendance-hub/sapphire-c
1195
1304
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1196
1305
  type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
1197
1306
  }>>;
1307
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1308
+ subcategory: import("@ascendance-hub/sapphire-core").ObjectField<{
1309
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1310
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1311
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
1312
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1313
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1314
+ }> | undefined, import("@ascendance-hub/sapphire-core").ObjectInput<{
1315
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1316
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
1317
+ }> | undefined>;
1198
1318
  paymentMethod: import("@ascendance-hub/sapphire-core").EnumField<PaymentMethod, PaymentMethod, PaymentMethod>;
1199
1319
  counterparty: import("@ascendance-hub/sapphire-core").ObjectField<{
1200
1320
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -1303,6 +1423,8 @@ export declare const registerMovementSchema: import("@ascendance-hub/sapphire-co
1303
1423
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1304
1424
  origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
1305
1425
  confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
1426
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1427
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1306
1428
  }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
1307
1429
  direction: import("@ascendance-hub/sapphire-core").EnumField<MovementDirection, MovementDirection, MovementDirection>;
1308
1430
  title: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -1330,6 +1452,8 @@ export declare const registerMovementSchema: import("@ascendance-hub/sapphire-co
1330
1452
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1331
1453
  origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
1332
1454
  confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
1455
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1456
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1333
1457
  }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
1334
1458
  direction: import("@ascendance-hub/sapphire-core").EnumField<MovementDirection, MovementDirection, MovementDirection>;
1335
1459
  title: import("@ascendance-hub/sapphire-core").StringField<string, string>;
@@ -1357,6 +1481,8 @@ export declare const registerMovementSchema: import("@ascendance-hub/sapphire-co
1357
1481
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1358
1482
  origin: import("@ascendance-hub/sapphire-core").EnumField<MovementOrigin, MovementOrigin | undefined, MovementOrigin | undefined>;
1359
1483
  confirmDuplicate: import("@ascendance-hub/sapphire-core").BooleanField<boolean | undefined, boolean | undefined>;
1484
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1485
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1360
1486
  }>>;
1361
1487
  /**
1362
1488
  * Schema de EDIÇÃO (PATCH /financial-movements/:id). Todos os campos opcionais;
@@ -1386,6 +1512,8 @@ export declare const updateMovementSchema: import("@ascendance-hub/sapphire-core
1386
1512
  }> | undefined>;
1387
1513
  fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1388
1514
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1515
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1516
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1389
1517
  }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
1390
1518
  title: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1391
1519
  grossValue: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
@@ -1410,6 +1538,8 @@ export declare const updateMovementSchema: import("@ascendance-hub/sapphire-core
1410
1538
  }> | undefined>;
1411
1539
  fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1412
1540
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1541
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1542
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1413
1543
  }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
1414
1544
  title: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1415
1545
  grossValue: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
@@ -1434,6 +1564,8 @@ export declare const updateMovementSchema: import("@ascendance-hub/sapphire-core
1434
1564
  }> | undefined>;
1435
1565
  fiscalNote: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1436
1566
  description: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1567
+ subcategoryId: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
1568
+ channel: import("@ascendance-hub/sapphire-core").EnumField<MovementChannel, MovementChannel | undefined, MovementChannel | undefined>;
1437
1569
  }>>;
1438
1570
  /** Corpo de PATCH /financial-movements/:id/status. */
1439
1571
  export declare const changeMovementStatusSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
@@ -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;;;;;;;;GAQG;AACH,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAiHD,eAAO,MAAM,uBAAuB;;;;;;;;;;;IA1ElC;;;;;;;;;;;;OAYG;;IAGH;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvBH;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvBH;;;;;;;;;;;;OAYG;;IAGH;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDH,CAAA;AASF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBjC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYrB,CAAA;AAEZ,sDAAsD;AACtD,eAAO,MAAM,0BAA0B;;;;;;GAErC,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB;;;;;;GAElC,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,KA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A;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.recomputeBalancesSchema = exports.changeMovementStatusSchema = exports.updateMovementSchema = exports.registerMovementSchema = exports.financialMovementSchema = exports.CounterpartyKind = exports.MovementStatusSource = exports.MovementOrigin = exports.PaymentMethod = exports.MovementStatus = exports.MovementDirection = void 0;
3
+ exports.recomputeBalancesSchema = exports.changeMovementStatusSchema = exports.updateMovementSchema = exports.registerMovementSchema = exports.financialMovementSchema = exports.CounterpartyKind = exports.MovementChannel = exports.MovementStatusSource = 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");
@@ -56,6 +56,17 @@ var MovementStatusSource;
56
56
  MovementStatusSource["Auto"] = "auto";
57
57
  MovementStatusSource["Manual"] = "manual";
58
58
  })(MovementStatusSource || (exports.MovementStatusSource = MovementStatusSource = {}));
59
+ /**
60
+ * Canal da movimentação (M3, fatia 5). Opcional: ausente, os relatórios usam o
61
+ * canal efetivo (entrada em plataforma → delivery; outra entrada → dineIn;
62
+ * saída → shared). `shared` = da casa inteira (aluguel, energia, contador).
63
+ */
64
+ var MovementChannel;
65
+ (function (MovementChannel) {
66
+ MovementChannel["DineIn"] = "dineIn";
67
+ MovementChannel["Delivery"] = "delivery";
68
+ MovementChannel["Shared"] = "shared";
69
+ })(MovementChannel || (exports.MovementChannel = MovementChannel = {}));
59
70
  var CounterpartyKind;
60
71
  (function (CounterpartyKind) {
61
72
  CounterpartyKind["Client"] = "client";
@@ -119,6 +130,9 @@ const baseMovementSchema = s.object({
119
130
  */
120
131
  settledAt: s.date().coerce().optional(),
121
132
  account: accountRefSchema,
133
+ channel: s.type().enum(MovementChannel).optional(),
134
+ // Extended Reference da subcategoria (cópia do nome, como account/category).
135
+ subcategory: s.object({ _id: s.string(), name: s.string() }).optional(),
122
136
  paymentMethod: s.type().enum(PaymentMethod),
123
137
  counterparty: s.object({
124
138
  name: s.string(),
@@ -189,6 +203,9 @@ exports.registerMovementSchema = s.object({
189
203
  origin: s.type().enum(MovementOrigin).optional(),
190
204
  // Confirmação explícita para persistir uma possível duplicata (<2min).
191
205
  confirmDuplicate: s.boolean().optional(),
206
+ // Fatia 5: subcategoria da categoria escolhida (ativa) e canal, ambos opcionais.
207
+ subcategoryId: s.string().optional(),
208
+ channel: s.type().enum(MovementChannel).optional(),
192
209
  });
193
210
  /**
194
211
  * Schema de EDIÇÃO (PATCH /financial-movements/:id). Todos os campos opcionais;
@@ -206,6 +223,8 @@ exports.updateMovementSchema = s.object({
206
223
  counterparty: counterpartyRequestSchema,
207
224
  fiscalNote: s.string(),
208
225
  description: s.string().max(500),
226
+ subcategoryId: s.string(),
227
+ channel: s.type().enum(MovementChannel),
209
228
  }).partial();
210
229
  /** Corpo de PATCH /financial-movements/:id/status. */
211
230
  exports.changeMovementStatusSchema = s.object({
@@ -1 +1 @@
1
- {"version":3,"file":"financial-movement-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,2CAA6C;AAC7C,yEAAiE;AACjE,2EAA0D;AAE1D,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;;;;;;GASG;AAEH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AACzB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,aAQX;AARD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,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
1
+ {"version":3,"file":"financial-movement-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-movement-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,2CAA6C;AAC7C,yEAAiE;AACjE,2EAA0D;AAE1D,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;;;;;;GASG;AAEH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AACzB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,gDAA+B,CAAA;AACjC,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED;;;;;;;;GAQG;AACH,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED;;;;GAIG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,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C,IAAI,CAAC,cAAc,CAAC;CACtC,CAAC,CAAA;AAEF,6DAA6D;AAChD,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
@@ -3,9 +3,9 @@ export { financialAccountSchema, financialAccountInsertSchema, FinancialAccountT
3
3
  export { financialAccountUpdateSchema } from './financial-account-schema';
4
4
  export type { FinancialAccountActionResult, InactivateFinancialAccountRequest } from './financial-account-response';
5
5
  export { FinancialCategory } from './financial-category-entity';
6
- export { financialCategorySchema, financialCategoryInsertSchema, financialCategoryUpdateSchema, CategoryType, CategoryBehavior, OperationalNature, DreGroup, } from './financial-category-schema';
7
- export type { FinancialCategoryActionResult } from './financial-category-response';
6
+ export { financialCategorySchema, financialCategoryInsertSchema, financialCategoryUpdateSchema, CategoryType, CategoryBehavior, OperationalNature, DreGroup, subcategorySchema, subcategoryInsertSchema, subcategoryUpdateSchema, } from './financial-category-schema';
7
+ export type { FinancialCategoryActionResult, Subcategory, SubcategoryRequest } from './financial-category-response';
8
8
  export { FinancialMovement } from './financial-movement-entity';
9
- export { financialMovementSchema, registerMovementSchema, updateMovementSchema, changeMovementStatusSchema, recomputeBalancesSchema, MovementDirection, MovementStatus, MovementStatusSource, PaymentMethod, MovementOrigin, CounterpartyKind, } from './financial-movement-schema';
9
+ export { financialMovementSchema, registerMovementSchema, updateMovementSchema, changeMovementStatusSchema, recomputeBalancesSchema, MovementDirection, MovementStatus, MovementStatusSource, PaymentMethod, MovementOrigin, CounterpartyKind, MovementChannel, } from './financial-movement-schema';
10
10
  export type { RegisterMovementRequest, UpdateMovementRequest, MovementListQuery, MovementCounterpartyInput, FinancialMovementActionResult, ChangeMovementStatusRequest, } from './financial-movement-response';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":"AA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E,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,6BAA6B,CAAA;AACpC,YAAY,EAAE,6BAA6B,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEnH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,6BAA6B,CAAA;AACpC,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CounterpartyKind = exports.MovementOrigin = exports.PaymentMethod = exports.MovementStatusSource = exports.MovementStatus = exports.MovementDirection = exports.recomputeBalancesSchema = exports.changeMovementStatusSchema = exports.updateMovementSchema = exports.registerMovementSchema = exports.financialMovementSchema = exports.DreGroup = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategoryUpdateSchema = exports.financialCategoryInsertSchema = exports.financialCategorySchema = exports.financialAccountUpdateSchema = exports.FinancialAccountType = exports.financialAccountInsertSchema = exports.financialAccountSchema = void 0;
3
+ exports.MovementChannel = exports.CounterpartyKind = exports.MovementOrigin = exports.PaymentMethod = exports.MovementStatusSource = exports.MovementStatus = exports.MovementDirection = exports.recomputeBalancesSchema = exports.changeMovementStatusSchema = exports.updateMovementSchema = exports.registerMovementSchema = exports.financialMovementSchema = exports.subcategoryUpdateSchema = exports.subcategoryInsertSchema = exports.subcategorySchema = exports.DreGroup = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategoryUpdateSchema = exports.financialCategoryInsertSchema = exports.financialCategorySchema = exports.financialAccountUpdateSchema = exports.FinancialAccountType = exports.financialAccountInsertSchema = exports.financialAccountSchema = void 0;
4
4
  var financial_account_schema_1 = require("./financial-account-schema");
5
5
  Object.defineProperty(exports, "financialAccountSchema", { enumerable: true, get: function () { return financial_account_schema_1.financialAccountSchema; } });
6
6
  Object.defineProperty(exports, "financialAccountInsertSchema", { enumerable: true, get: function () { return financial_account_schema_1.financialAccountInsertSchema; } });
@@ -15,6 +15,9 @@ Object.defineProperty(exports, "CategoryType", { enumerable: true, get: function
15
15
  Object.defineProperty(exports, "CategoryBehavior", { enumerable: true, get: function () { return financial_category_schema_1.CategoryBehavior; } });
16
16
  Object.defineProperty(exports, "OperationalNature", { enumerable: true, get: function () { return financial_category_schema_1.OperationalNature; } });
17
17
  Object.defineProperty(exports, "DreGroup", { enumerable: true, get: function () { return financial_category_schema_1.DreGroup; } });
18
+ Object.defineProperty(exports, "subcategorySchema", { enumerable: true, get: function () { return financial_category_schema_1.subcategorySchema; } });
19
+ Object.defineProperty(exports, "subcategoryInsertSchema", { enumerable: true, get: function () { return financial_category_schema_1.subcategoryInsertSchema; } });
20
+ Object.defineProperty(exports, "subcategoryUpdateSchema", { enumerable: true, get: function () { return financial_category_schema_1.subcategoryUpdateSchema; } });
18
21
  var financial_movement_schema_1 = require("./financial-movement-schema");
19
22
  Object.defineProperty(exports, "financialMovementSchema", { enumerable: true, get: function () { return financial_movement_schema_1.financialMovementSchema; } });
20
23
  Object.defineProperty(exports, "registerMovementSchema", { enumerable: true, get: function () { return financial_movement_schema_1.registerMovementSchema; } });
@@ -27,4 +30,5 @@ Object.defineProperty(exports, "MovementStatusSource", { enumerable: true, get:
27
30
  Object.defineProperty(exports, "PaymentMethod", { enumerable: true, get: function () { return financial_movement_schema_1.PaymentMethod; } });
28
31
  Object.defineProperty(exports, "MovementOrigin", { enumerable: true, get: function () { return financial_movement_schema_1.MovementOrigin; } });
29
32
  Object.defineProperty(exports, "CounterpartyKind", { enumerable: true, get: function () { return financial_movement_schema_1.CounterpartyKind; } });
33
+ Object.defineProperty(exports, "MovementChannel", { enumerable: true, get: function () { return financial_movement_schema_1.MovementChannel; } });
30
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":";;;AACA,uEAAuH;AAA9G,kIAAA,sBAAsB,OAAA;AAAE,wIAAA,4BAA4B,OAAA;AAAE,gIAAA,oBAAoB,OAAA;AACnF,uEAAyE;AAAhE,wIAAA,4BAA4B,OAAA;AAIrC,yEAQoC;AAPlC,oIAAA,uBAAuB,OAAA;AACvB,0IAAA,6BAA6B,OAAA;AAC7B,0IAAA,6BAA6B,OAAA;AAC7B,yHAAA,YAAY,OAAA;AACZ,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA;AACjB,qHAAA,QAAQ,OAAA;AAKV,yEAYoC;AAXlC,oIAAA,uBAAuB,OAAA;AACvB,mIAAA,sBAAsB,OAAA;AACtB,iIAAA,oBAAoB,OAAA;AACpB,uIAAA,0BAA0B,OAAA;AAC1B,oIAAA,uBAAuB,OAAA;AACvB,8HAAA,iBAAiB,OAAA;AACjB,2HAAA,cAAc,OAAA;AACd,iIAAA,oBAAoB,OAAA;AACpB,0HAAA,aAAa,OAAA;AACb,2HAAA,cAAc,OAAA;AACd,6HAAA,gBAAgB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":";;;AACA,uEAAuH;AAA9G,kIAAA,sBAAsB,OAAA;AAAE,wIAAA,4BAA4B,OAAA;AAAE,gIAAA,oBAAoB,OAAA;AACnF,uEAAyE;AAAhE,wIAAA,4BAA4B,OAAA;AAIrC,yEAWoC;AAVlC,oIAAA,uBAAuB,OAAA;AACvB,0IAAA,6BAA6B,OAAA;AAC7B,0IAAA,6BAA6B,OAAA;AAC7B,yHAAA,YAAY,OAAA;AACZ,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA;AACjB,qHAAA,QAAQ,OAAA;AACR,8HAAA,iBAAiB,OAAA;AACjB,oIAAA,uBAAuB,OAAA;AACvB,oIAAA,uBAAuB,OAAA;AAKzB,yEAaoC;AAZlC,oIAAA,uBAAuB,OAAA;AACvB,mIAAA,sBAAsB,OAAA;AACtB,iIAAA,oBAAoB,OAAA;AACpB,uIAAA,0BAA0B,OAAA;AAC1B,oIAAA,uBAAuB,OAAA;AACvB,8HAAA,iBAAiB,OAAA;AACjB,2HAAA,cAAc,OAAA;AACd,iIAAA,oBAAoB,OAAA;AACpB,0HAAA,aAAa,OAAA;AACb,2HAAA,cAAc,OAAA;AACd,6HAAA,gBAAgB,OAAA;AAChB,4HAAA,eAAe,OAAA"}
@@ -0,0 +1,86 @@
1
+ import type { CategoryBehavior, DreGroup } from '../financial/financial-category-schema';
2
+ import type { MovementChannel } from '../financial/financial-movement-schema';
3
+ /**
4
+ * Contrato de GET /reports/expenses (fatia 6). Por competência; número cru;
5
+ * percentuais e variações como fração (0.311 = 31,1%). Spec:
6
+ * MintlyApi/specs/modulos-novos/20261013/custos-despesas.md.
7
+ */
8
+ /** `month` em AAAA-MM (padrão: mês corrente). Sem `channel` = Geral. */
9
+ export interface ExpensesQuery {
10
+ month?: string;
11
+ channel?: MovementChannel.DineIn | MovementChannel.Delivery;
12
+ }
13
+ export type ExpenseItemKind = 'category' | 'platformFee';
14
+ /** Linha de "Para onde está indo seu dinheiro": categoria ou taxa de uma conta de plataforma. */
15
+ export interface ExpenseItem {
16
+ /** categoryId, ou `platformFee:<accountId>`. */
17
+ key: string;
18
+ kind: ExpenseItemKind;
19
+ categoryId: string | null;
20
+ name: string;
21
+ behavior: CategoryBehavior;
22
+ dreGroup: DreGroup | null;
23
+ amount: number;
24
+ previous: number;
25
+ /** Média de M−1..M−3 (desde o primeiro lançamento); `null` sem mês elegível. */
26
+ average3: number | null;
27
+ deltaPrevious: number | null;
28
+ deltaAverage3: number | null;
29
+ pctOfRevenue: number | null;
30
+ }
31
+ export interface ExpensesTotal {
32
+ current: number;
33
+ previous: number;
34
+ average3: number | null;
35
+ deltaPrevious: number | null;
36
+ deltaAverage3: number | null;
37
+ }
38
+ export interface ExpensesPlatformFee {
39
+ amount: number;
40
+ previous: number;
41
+ deltaPrevious: number | null;
42
+ /** Σ receita bruta de canal efetivo delivery no mês. */
43
+ deliveryRevenue: number;
44
+ pctOfDelivery: number | null;
45
+ }
46
+ export interface ExpensesReport {
47
+ referenceMonth: string;
48
+ previousMonth: string;
49
+ channel: MovementChannel | null;
50
+ revenue: {
51
+ current: number;
52
+ previous: number;
53
+ };
54
+ total: ExpensesTotal;
55
+ cmv: {
56
+ amount: number;
57
+ pctOfRevenue: number | null;
58
+ target: {
59
+ min: number;
60
+ max: number;
61
+ };
62
+ };
63
+ primeCost: {
64
+ amount: number;
65
+ cmv: number;
66
+ labor: number;
67
+ pctOfRevenue: number | null;
68
+ targetMax: number;
69
+ };
70
+ platformFee: ExpensesPlatformFee;
71
+ /** Misto separado (a tela mostra "Misto"). */
72
+ byBehavior: {
73
+ fixed: number;
74
+ variable: number;
75
+ mixed: number;
76
+ };
77
+ items: ExpenseItem[];
78
+ /** Só com `channel`: Σ saídas de canal efetivo `shared` que ficaram de fora. */
79
+ sharedExcluded: number | null;
80
+ /** 6 meses, do mais antigo ao mês de referência. */
81
+ history: {
82
+ month: string;
83
+ total: number;
84
+ }[];
85
+ }
86
+ //# sourceMappingURL=expenses-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expenses-response.d.ts","sourceRoot":"","sources":["../../../../src/core/data/reports/expenses-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAA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AAA;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,KAAK,EAAE,aAAa,CAAA;IACpB,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;IAC1F,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IACzG,WAAW,EAAE,mBAAmB,CAAA;IAChC,8CAA8C;IAC9C,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9D,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,gFAAgF;IAChF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,oDAAoD;IACpD,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=expenses-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expenses-response.js","sourceRoot":"","sources":["../../../../src/core/data/reports/expenses-response.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from './cash-flow-response';
2
2
  export * from './result-response';
3
+ export * from './expenses-response';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/reports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/reports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./cash-flow-response"), exports);
18
18
  __exportStar(require("./result-response"), exports);
19
+ __exportStar(require("./expenses-response"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/reports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/reports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,oDAAiC;AACjC,sDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mintly-lib",
3
- "version": "2.12.0-preview",
3
+ "version": "2.14.0-preview",
4
4
  "description": "Mintly Library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",