mintly-lib 1.0.1 → 1.2.0

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 (193) hide show
  1. package/build/clients/auth-client.d.ts +18 -0
  2. package/build/clients/auth-client.d.ts.map +1 -0
  3. package/build/clients/auth-client.js +38 -0
  4. package/build/clients/auth-client.js.map +1 -0
  5. package/build/clients/financial-account-client.d.ts +6 -0
  6. package/build/clients/financial-account-client.d.ts.map +1 -0
  7. package/build/clients/financial-account-client.js +11 -0
  8. package/build/clients/financial-account-client.js.map +1 -0
  9. package/build/clients/financial-category-client.d.ts +6 -0
  10. package/build/clients/financial-category-client.d.ts.map +1 -0
  11. package/build/clients/financial-category-client.js +11 -0
  12. package/build/clients/financial-category-client.js.map +1 -0
  13. package/build/clients/index.d.ts +4 -0
  14. package/build/clients/index.d.ts.map +1 -1
  15. package/build/clients/index.js +9 -1
  16. package/build/clients/index.js.map +1 -1
  17. package/build/clients/person-client.d.ts +2 -5
  18. package/build/clients/person-client.d.ts.map +1 -1
  19. package/build/clients/person-client.js +1 -1
  20. package/build/clients/person-client.js.map +1 -1
  21. package/build/clients/restaurant-client.d.ts +6 -0
  22. package/build/clients/restaurant-client.d.ts.map +1 -0
  23. package/build/clients/restaurant-client.js +11 -0
  24. package/build/clients/restaurant-client.js.map +1 -0
  25. package/build/core/client/master-client.d.ts +5 -1
  26. package/build/core/client/master-client.d.ts.map +1 -1
  27. package/build/core/client/master-client.js +4 -0
  28. package/build/core/client/master-client.js.map +1 -1
  29. package/build/core/data/auth/auth-response.d.ts +17 -0
  30. package/build/core/data/auth/auth-response.d.ts.map +1 -0
  31. package/build/{aurora/types/infer-type.js → core/data/auth/auth-response.js} +1 -1
  32. package/build/core/data/auth/auth-response.js.map +1 -0
  33. package/build/core/data/auth/index.d.ts +7 -0
  34. package/build/core/data/auth/index.d.ts.map +1 -0
  35. package/build/core/data/auth/index.js +10 -0
  36. package/build/core/data/auth/index.js.map +1 -0
  37. package/build/core/data/auth/login-schema.d.ts +17 -0
  38. package/build/core/data/auth/login-schema.d.ts.map +1 -0
  39. package/build/core/data/auth/login-schema.js +14 -0
  40. package/build/core/data/auth/login-schema.js.map +1 -0
  41. package/build/core/data/auth/password-policy.d.ts +7 -0
  42. package/build/core/data/auth/password-policy.d.ts.map +1 -0
  43. package/build/core/data/auth/password-policy.js +14 -0
  44. package/build/core/data/auth/password-policy.js.map +1 -0
  45. package/build/core/data/auth/signup-schema.d.ts +199 -0
  46. package/build/core/data/auth/signup-schema.d.ts.map +1 -0
  47. package/build/core/data/auth/signup-schema.js +21 -0
  48. package/build/core/data/auth/signup-schema.js.map +1 -0
  49. package/build/core/data/common/audit.d.ts +24 -0
  50. package/build/core/data/common/audit.d.ts.map +1 -0
  51. package/build/core/data/common/audit.js +17 -0
  52. package/build/core/data/common/audit.js.map +1 -0
  53. package/build/core/data/common/index.d.ts +4 -0
  54. package/build/core/data/common/index.d.ts.map +1 -0
  55. package/build/core/data/common/index.js +8 -0
  56. package/build/core/data/common/index.js.map +1 -0
  57. package/build/core/data/common/status.d.ts +5 -0
  58. package/build/core/data/common/status.d.ts.map +1 -0
  59. package/build/core/data/common/status.js +9 -0
  60. package/build/core/data/common/status.js.map +1 -0
  61. package/build/core/data/financial/financial-account-entity.d.ts +5 -0
  62. package/build/core/data/financial/financial-account-entity.d.ts.map +1 -0
  63. package/build/core/data/financial/financial-account-entity.js +3 -0
  64. package/build/core/data/financial/financial-account-entity.js.map +1 -0
  65. package/build/core/data/financial/financial-account-schema.d.ts +81 -0
  66. package/build/core/data/financial/financial-account-schema.d.ts.map +1 -0
  67. package/build/core/data/financial/financial-account-schema.js +25 -0
  68. package/build/core/data/financial/financial-account-schema.js.map +1 -0
  69. package/build/core/data/financial/financial-category-entity.d.ts +5 -0
  70. package/build/core/data/financial/financial-category-entity.d.ts.map +1 -0
  71. package/build/core/data/financial/financial-category-entity.js +3 -0
  72. package/build/core/data/financial/financial-category-entity.js.map +1 -0
  73. package/build/core/data/financial/financial-category-schema.d.ts +87 -0
  74. package/build/core/data/financial/financial-category-schema.d.ts.map +1 -0
  75. package/build/core/data/financial/financial-category-schema.js +33 -0
  76. package/build/core/data/financial/financial-category-schema.js.map +1 -0
  77. package/build/core/data/financial/index.d.ts +5 -0
  78. package/build/core/data/financial/index.d.ts.map +1 -0
  79. package/build/core/data/financial/index.js +12 -0
  80. package/build/core/data/financial/index.js.map +1 -0
  81. package/build/core/data/index.d.ts +5 -0
  82. package/build/core/data/index.d.ts.map +1 -1
  83. package/build/core/data/index.js +5 -0
  84. package/build/core/data/index.js.map +1 -1
  85. package/build/core/data/person/index.d.ts +3 -1
  86. package/build/core/data/person/index.d.ts.map +1 -1
  87. package/build/core/data/person/index.js +5 -3
  88. package/build/core/data/person/index.js.map +1 -1
  89. package/build/core/data/person/person-entity.d.ts +3 -2
  90. package/build/core/data/person/person-entity.d.ts.map +1 -1
  91. package/build/core/data/person/person-ref-schema.d.ts +18 -0
  92. package/build/core/data/person/person-ref-schema.d.ts.map +1 -0
  93. package/build/core/data/person/person-ref-schema.js +15 -0
  94. package/build/core/data/person/person-ref-schema.js.map +1 -0
  95. package/build/core/data/person/person-schema.d.ts +59 -0
  96. package/build/core/data/person/person-schema.d.ts.map +1 -0
  97. package/build/core/data/person/person-schema.js +12 -0
  98. package/build/core/data/person/person-schema.js.map +1 -0
  99. package/build/core/data/restaurant/index.d.ts +3 -0
  100. package/build/core/data/restaurant/index.d.ts.map +1 -0
  101. package/build/core/data/restaurant/index.js +6 -0
  102. package/build/core/data/restaurant/index.js.map +1 -0
  103. package/build/core/data/restaurant/restaurant-entity.d.ts +5 -0
  104. package/build/core/data/restaurant/restaurant-entity.d.ts.map +1 -0
  105. package/build/core/data/restaurant/restaurant-entity.js +3 -0
  106. package/build/core/data/restaurant/restaurant-entity.js.map +1 -0
  107. package/build/core/data/restaurant/restaurant-schema.d.ts +56 -0
  108. package/build/core/data/restaurant/restaurant-schema.d.ts.map +1 -0
  109. package/build/core/data/restaurant/restaurant-schema.js +11 -0
  110. package/build/core/data/restaurant/restaurant-schema.js.map +1 -0
  111. package/build/core/data/user/index.d.ts +3 -0
  112. package/build/core/data/user/index.d.ts.map +1 -0
  113. package/build/core/data/user/index.js +8 -0
  114. package/build/core/data/user/index.js.map +1 -0
  115. package/build/core/data/user/user-entity.d.ts +5 -0
  116. package/build/core/data/user/user-entity.d.ts.map +1 -0
  117. package/build/{aurora/interfaces/field.js → core/data/user/user-entity.js} +1 -1
  118. package/build/core/data/user/user-entity.js.map +1 -0
  119. package/build/core/data/user/user-schema.d.ts +118 -0
  120. package/build/core/data/user/user-schema.d.ts.map +1 -0
  121. package/build/core/data/user/user-schema.js +35 -0
  122. package/build/core/data/user/user-schema.js.map +1 -0
  123. package/build/index.d.ts +0 -1
  124. package/build/index.d.ts.map +1 -1
  125. package/build/index.js +0 -1
  126. package/build/index.js.map +1 -1
  127. package/package.json +2 -1
  128. package/build/aurora/core/array.d.ts +0 -18
  129. package/build/aurora/core/array.d.ts.map +0 -1
  130. package/build/aurora/core/array.js +0 -63
  131. package/build/aurora/core/array.js.map +0 -1
  132. package/build/aurora/core/boolean.d.ts +0 -14
  133. package/build/aurora/core/boolean.d.ts.map +0 -1
  134. package/build/aurora/core/boolean.js +0 -36
  135. package/build/aurora/core/boolean.js.map +0 -1
  136. package/build/aurora/core/date.d.ts +0 -14
  137. package/build/aurora/core/date.d.ts.map +0 -1
  138. package/build/aurora/core/date.js +0 -43
  139. package/build/aurora/core/date.js.map +0 -1
  140. package/build/aurora/core/index.d.ts +0 -9
  141. package/build/aurora/core/index.d.ts.map +0 -1
  142. package/build/aurora/core/index.js +0 -20
  143. package/build/aurora/core/index.js.map +0 -1
  144. package/build/aurora/core/number.d.ts +0 -15
  145. package/build/aurora/core/number.d.ts.map +0 -1
  146. package/build/aurora/core/number.js +0 -37
  147. package/build/aurora/core/number.js.map +0 -1
  148. package/build/aurora/core/object.d.ts +0 -17
  149. package/build/aurora/core/object.d.ts.map +0 -1
  150. package/build/aurora/core/object.js +0 -53
  151. package/build/aurora/core/object.js.map +0 -1
  152. package/build/aurora/core/string.d.ts +0 -16
  153. package/build/aurora/core/string.d.ts.map +0 -1
  154. package/build/aurora/core/string.js +0 -52
  155. package/build/aurora/core/string.js.map +0 -1
  156. package/build/aurora/core/type.d.ts +0 -11
  157. package/build/aurora/core/type.d.ts.map +0 -1
  158. package/build/aurora/core/type.js +0 -21
  159. package/build/aurora/core/type.js.map +0 -1
  160. package/build/aurora/core/union.d.ts +0 -16
  161. package/build/aurora/core/union.d.ts.map +0 -1
  162. package/build/aurora/core/union.js +0 -38
  163. package/build/aurora/core/union.js.map +0 -1
  164. package/build/aurora/index.d.ts +0 -6
  165. package/build/aurora/index.d.ts.map +0 -1
  166. package/build/aurora/index.js +0 -25
  167. package/build/aurora/index.js.map +0 -1
  168. package/build/aurora/interfaces/field.d.ts +0 -9
  169. package/build/aurora/interfaces/field.d.ts.map +0 -1
  170. package/build/aurora/interfaces/field.js.map +0 -1
  171. package/build/aurora/lib/aurora.d.ts +0 -22
  172. package/build/aurora/lib/aurora.d.ts.map +0 -1
  173. package/build/aurora/lib/aurora.js +0 -155
  174. package/build/aurora/lib/aurora.js.map +0 -1
  175. package/build/aurora/lib/validation-error.d.ts +0 -5
  176. package/build/aurora/lib/validation-error.d.ts.map +0 -1
  177. package/build/aurora/lib/validation-error.js +0 -12
  178. package/build/aurora/lib/validation-error.js.map +0 -1
  179. package/build/aurora/types/index.d.ts +0 -3
  180. package/build/aurora/types/index.d.ts.map +0 -1
  181. package/build/aurora/types/index.js +0 -6
  182. package/build/aurora/types/index.js.map +0 -1
  183. package/build/aurora/types/infer-type.d.ts +0 -13
  184. package/build/aurora/types/infer-type.d.ts.map +0 -1
  185. package/build/aurora/types/infer-type.js.map +0 -1
  186. package/build/aurora/types/orm.d.ts +0 -4
  187. package/build/aurora/types/orm.d.ts.map +0 -1
  188. package/build/aurora/types/orm.js +0 -8
  189. package/build/aurora/types/orm.js.map +0 -1
  190. package/build/core/data/person/person-orm.d.ts +0 -5
  191. package/build/core/data/person/person-orm.d.ts.map +0 -1
  192. package/build/core/data/person/person-orm.js +0 -10
  193. package/build/core/data/person/person-orm.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signup-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/auth/signup-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAM1D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signupRequestSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const person_schema_1 = require("../person/person-schema");
6
+ const password_policy_1 = require("./password-policy");
7
+ const s = new sapphire_core_1.Sapphire();
8
+ /**
9
+ * Payload do cadastro inicial. O `person` reaproveita o personSchema sem o
10
+ * audit (`omit`), já que esses campos só são definidos no servidor. A
11
+ * confirmação de senha e o aceite obrigatório são validações cross-field
12
+ * tratadas no use case da API.
13
+ */
14
+ exports.signupRequestSchema = s.object({
15
+ person: person_schema_1.personSchema.omit(['audit']),
16
+ email: s.string().email({ message: 'Informe um e-mail válido.' }),
17
+ password: password_policy_1.passwordSchema,
18
+ restaurantName: s.string().min(2, { message: 'O nome do restaurante deve ter pelo menos 2 caracteres.' }),
19
+ termsAccepted: s.boolean(),
20
+ });
21
+ //# sourceMappingURL=signup-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signup-schema.js","sourceRoot":"","sources":["../../../../src/core/data/auth/signup-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAExD,2DAAsD;AACtD,uDAAkD;AAElD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,4BAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACjE,QAAQ,EAAE,gCAAc;IACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC;IACzG,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ /**
3
+ * Sub-documento de auditoria embutido em cada entity (lido junto do doc).
4
+ * createdBy/updatedBy são opcionais: no cadastro inicial o primeiro usuário
5
+ * é criado antes de existir um "autor" para referenciar.
6
+ */
7
+ export declare const auditSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
8
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
9
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
10
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
11
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
12
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
13
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
14
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
15
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
16
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
17
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
18
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
19
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
20
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
21
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
22
+ }>>;
23
+ export type Audit = Infer<typeof auditSchema>;
24
+ //# sourceMappingURL=audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../../src/core/data/common/audit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAI1D;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;GAKtB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.auditSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const s = new sapphire_core_1.Sapphire();
6
+ /**
7
+ * Sub-documento de auditoria embutido em cada entity (lido junto do doc).
8
+ * createdBy/updatedBy são opcionais: no cadastro inicial o primeiro usuário
9
+ * é criado antes de existir um "autor" para referenciar.
10
+ */
11
+ exports.auditSchema = s.object({
12
+ createdAt: s.string(),
13
+ updatedAt: s.string(),
14
+ createdBy: s.string().optional(),
15
+ updatedBy: s.string().optional(),
16
+ });
17
+ //# sourceMappingURL=audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/core/data/common/audit.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { RecordStatus } from './status';
2
+ export { auditSchema } from './audit';
3
+ export type { Audit } from './audit';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.auditSchema = exports.RecordStatus = void 0;
4
+ var status_1 = require("./status");
5
+ Object.defineProperty(exports, "RecordStatus", { enumerable: true, get: function () { return status_1.RecordStatus; } });
6
+ var audit_1 = require("./audit");
7
+ Object.defineProperty(exports, "auditSchema", { enumerable: true, get: function () { return audit_1.auditSchema; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/common/index.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AACrB,iCAAqC;AAA5B,oGAAA,WAAW,OAAA"}
@@ -0,0 +1,5 @@
1
+ export declare enum RecordStatus {
2
+ Active = "active",
3
+ Inactive = "inactive"
4
+ }
5
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../src/core/data/common/status.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecordStatus = void 0;
4
+ var RecordStatus;
5
+ (function (RecordStatus) {
6
+ RecordStatus["Active"] = "active";
7
+ RecordStatus["Inactive"] = "inactive";
8
+ })(RecordStatus || (exports.RecordStatus = RecordStatus = {}));
9
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/core/data/common/status.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -0,0 +1,5 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ import { Entity } from '../api/entity';
3
+ import { financialAccountSchema } from './financial-account-schema';
4
+ export type FinancialAccount = Infer<typeof financialAccountSchema> & Entity;
5
+ //# sourceMappingURL=financial-account-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,GAAG,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=financial-account-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-entity.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-entity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,81 @@
1
+ import { RecordStatus } from '../common/status';
2
+ export declare enum FinancialAccountType {
3
+ Bank = "bank",
4
+ Cash = "cash",
5
+ DigitalWallet = "digitalWallet",
6
+ Platform = "platform"
7
+ }
8
+ export declare const financialAccountSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
9
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
10
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
11
+ type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
12
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
13
+ isDefault: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
14
+ feePercent: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
15
+ settlementDays: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
16
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
17
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
18
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
19
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
20
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
21
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
22
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
23
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
24
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
25
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
26
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
27
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
28
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
29
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
30
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
31
+ }>>;
32
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
33
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
34
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
35
+ type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
36
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
37
+ isDefault: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
38
+ feePercent: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
39
+ settlementDays: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
40
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
41
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
42
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
43
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
44
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
45
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
46
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
47
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
48
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
49
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
50
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
51
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
52
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
53
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
54
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
55
+ }>>;
56
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
57
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
58
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
59
+ type: import("@ascendance-hub/sapphire-core").EnumField<FinancialAccountType, FinancialAccountType, FinancialAccountType>;
60
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
61
+ isDefault: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
62
+ feePercent: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
63
+ settlementDays: import("@ascendance-hub/sapphire-core").NumberField<number | undefined, number | undefined>;
64
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
65
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
66
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
67
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
68
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
69
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
70
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
71
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
72
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
73
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
74
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
75
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
76
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
77
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
78
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
79
+ }>>;
80
+ }>>;
81
+ //# sourceMappingURL=financial-account-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAK/C,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASjC,CAAA"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.financialAccountSchema = exports.FinancialAccountType = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const status_1 = require("../common/status");
6
+ const audit_1 = require("../common/audit");
7
+ const s = new sapphire_core_1.Sapphire();
8
+ var FinancialAccountType;
9
+ (function (FinancialAccountType) {
10
+ FinancialAccountType["Bank"] = "bank";
11
+ FinancialAccountType["Cash"] = "cash";
12
+ FinancialAccountType["DigitalWallet"] = "digitalWallet";
13
+ FinancialAccountType["Platform"] = "platform";
14
+ })(FinancialAccountType || (exports.FinancialAccountType = FinancialAccountType = {}));
15
+ exports.financialAccountSchema = s.object({
16
+ restaurantId: s.string(),
17
+ name: s.string(),
18
+ type: s.type().enum(FinancialAccountType),
19
+ status: s.type().enum(status_1.RecordStatus),
20
+ isDefault: s.boolean(),
21
+ feePercent: s.number().optional(),
22
+ settlementDays: s.number().optional(),
23
+ audit: audit_1.auditSchema,
24
+ });
25
+ //# sourceMappingURL=financial-account-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACzC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ import { Entity } from '../api/entity';
3
+ import { financialCategorySchema } from './financial-category-schema';
4
+ export type FinancialCategory = Infer<typeof financialCategorySchema> & Entity;
5
+ //# sourceMappingURL=financial-category-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAErE,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=financial-category-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-entity.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-entity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,87 @@
1
+ import { RecordStatus } from '../common/status';
2
+ export declare enum CategoryType {
3
+ Revenue = "revenue",
4
+ Expense = "expense"
5
+ }
6
+ export declare enum CategoryBehavior {
7
+ Fixed = "fixed",
8
+ Variable = "variable"
9
+ }
10
+ export declare enum OperationalNature {
11
+ Operational = "operational",
12
+ NonOperational = "nonOperational"
13
+ }
14
+ export declare const financialCategorySchema: import("@ascendance-hub/sapphire-core").ObjectField<{
15
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
16
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
17
+ type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
18
+ behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
19
+ operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
20
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
21
+ isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
22
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
23
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
24
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
25
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
26
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
27
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
28
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
29
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
30
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
31
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
32
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
33
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
34
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
35
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
36
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
37
+ }>>;
38
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
39
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
40
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
41
+ type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
42
+ behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
43
+ operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
44
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
45
+ isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
46
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
47
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
48
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
49
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
50
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
51
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
52
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
53
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
54
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
55
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
56
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
57
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
58
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
59
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
60
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
61
+ }>>;
62
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
63
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
64
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
65
+ type: import("@ascendance-hub/sapphire-core").EnumField<CategoryType, CategoryType, CategoryType>;
66
+ behavior: import("@ascendance-hub/sapphire-core").EnumField<CategoryBehavior, CategoryBehavior, CategoryBehavior>;
67
+ operationalNature: import("@ascendance-hub/sapphire-core").EnumField<OperationalNature, OperationalNature, OperationalNature>;
68
+ status: import("@ascendance-hub/sapphire-core").EnumField<RecordStatus, RecordStatus, RecordStatus>;
69
+ isSystem: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
70
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
71
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
72
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
73
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
74
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
75
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
76
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
77
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
78
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
79
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
80
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
81
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
82
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
83
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
84
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
85
+ }>>;
86
+ }>>;
87
+ //# sourceMappingURL=financial-category-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAK/C,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASlC,CAAA"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.financialCategorySchema = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const status_1 = require("../common/status");
6
+ const audit_1 = require("../common/audit");
7
+ const s = new sapphire_core_1.Sapphire();
8
+ var CategoryType;
9
+ (function (CategoryType) {
10
+ CategoryType["Revenue"] = "revenue";
11
+ CategoryType["Expense"] = "expense";
12
+ })(CategoryType || (exports.CategoryType = CategoryType = {}));
13
+ var CategoryBehavior;
14
+ (function (CategoryBehavior) {
15
+ CategoryBehavior["Fixed"] = "fixed";
16
+ CategoryBehavior["Variable"] = "variable";
17
+ })(CategoryBehavior || (exports.CategoryBehavior = CategoryBehavior = {}));
18
+ var OperationalNature;
19
+ (function (OperationalNature) {
20
+ OperationalNature["Operational"] = "operational";
21
+ OperationalNature["NonOperational"] = "nonOperational";
22
+ })(OperationalNature || (exports.OperationalNature = OperationalNature = {}));
23
+ exports.financialCategorySchema = s.object({
24
+ restaurantId: s.string(),
25
+ name: s.string(),
26
+ type: s.type().enum(CategoryType),
27
+ behavior: s.type().enum(CategoryBehavior),
28
+ operationalNature: s.type().enum(OperationalNature),
29
+ status: s.type().enum(status_1.RecordStatus),
30
+ isSystem: s.boolean(),
31
+ audit: audit_1.auditSchema,
32
+ });
33
+ //# sourceMappingURL=financial-category-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAEY,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACzC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { FinancialAccount } from './financial-account-entity';
2
+ export { financialAccountSchema, FinancialAccountType } from './financial-account-schema';
3
+ export { FinancialCategory } from './financial-category-entity';
4
+ export { financialCategorySchema, CategoryType, CategoryBehavior, OperationalNature, } from './financial-category-schema';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,6BAA6B,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategorySchema = exports.FinancialAccountType = exports.financialAccountSchema = void 0;
4
+ var financial_account_schema_1 = require("./financial-account-schema");
5
+ Object.defineProperty(exports, "financialAccountSchema", { enumerable: true, get: function () { return financial_account_schema_1.financialAccountSchema; } });
6
+ Object.defineProperty(exports, "FinancialAccountType", { enumerable: true, get: function () { return financial_account_schema_1.FinancialAccountType; } });
7
+ var financial_category_schema_1 = require("./financial-category-schema");
8
+ Object.defineProperty(exports, "financialCategorySchema", { enumerable: true, get: function () { return financial_category_schema_1.financialCategorySchema; } });
9
+ Object.defineProperty(exports, "CategoryType", { enumerable: true, get: function () { return financial_category_schema_1.CategoryType; } });
10
+ Object.defineProperty(exports, "CategoryBehavior", { enumerable: true, get: function () { return financial_category_schema_1.CategoryBehavior; } });
11
+ Object.defineProperty(exports, "OperationalNature", { enumerable: true, get: function () { return financial_category_schema_1.OperationalNature; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":";;;AACA,uEAAyF;AAAhF,kIAAA,sBAAsB,OAAA;AAAE,gIAAA,oBAAoB,OAAA;AAGrD,yEAKoC;AAJlC,oIAAA,uBAAuB,OAAA;AACvB,yHAAA,YAAY,OAAA;AACZ,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA"}
@@ -1,4 +1,9 @@
1
1
  export * from './api';
2
+ export * from './common';
2
3
  export * from './person';
4
+ export * from './user';
5
+ export * from './restaurant';
6
+ export * from './financial';
7
+ export * from './auth';
3
8
  export * from './request';
4
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
@@ -15,6 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api"), exports);
18
+ __exportStar(require("./common"), exports);
18
19
  __exportStar(require("./person"), exports);
20
+ __exportStar(require("./user"), exports);
21
+ __exportStar(require("./restaurant"), exports);
22
+ __exportStar(require("./financial"), exports);
23
+ __exportStar(require("./auth"), exports);
19
24
  __exportStar(require("./request"), exports);
20
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,2CAAwB;AACxB,yCAAsB;AACtB,+CAA4B;AAC5B,8CAA2B;AAC3B,yCAAsB;AACtB,4CAAyB"}
@@ -1,3 +1,5 @@
1
1
  export { Person } from './person-entity';
2
- export { personOrm } from './person-orm';
2
+ export { personSchema } from './person-schema';
3
+ export { personRefSchema } from './person-ref-schema';
4
+ export type { PersonRef } from './person-ref-schema';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.personOrm = void 0;
4
- var person_orm_1 = require("./person-orm");
5
- Object.defineProperty(exports, "personOrm", { enumerable: true, get: function () { return person_orm_1.personOrm; } });
3
+ exports.personRefSchema = exports.personSchema = void 0;
4
+ var person_schema_1 = require("./person-schema");
5
+ Object.defineProperty(exports, "personSchema", { enumerable: true, get: function () { return person_schema_1.personSchema; } });
6
+ var person_ref_schema_1 = require("./person-ref-schema");
7
+ Object.defineProperty(exports, "personRefSchema", { enumerable: true, get: function () { return person_ref_schema_1.personRefSchema; } });
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AAA/B,uGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":";;;AACA,iDAA8C;AAArC,6GAAA,YAAY,OAAA;AACrB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA"}
@@ -1,4 +1,5 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
1
2
  import { Entity } from '../api/entity';
2
- import { personOrm } from './person-orm';
3
- export type Person = ReturnType<typeof personOrm.getType> & Entity;
3
+ import { personSchema } from './person-schema';
4
+ export type Person = Infer<typeof personSchema> & Entity;
4
5
  //# sourceMappingURL=person-entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"person-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA"}
1
+ {"version":3,"file":"person-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,YAAY,CAAC,GAAG,MAAM,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ /**
3
+ * Extended Reference de um Person: subset denormalizado ({ _id, name })
4
+ * embutido onde o nome é lido junto do doc (ex.: user.person). O documento
5
+ * completo (name, phone, audit) continua na collection `people`.
6
+ */
7
+ export declare const personRefSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
8
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
9
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
10
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
11
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
12
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
13
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
14
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
15
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
16
+ }>>;
17
+ export type PersonRef = Infer<typeof personRefSchema>;
18
+ //# sourceMappingURL=person-ref-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-ref-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-ref-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAI1D;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;GAG1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personRefSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const s = new sapphire_core_1.Sapphire();
6
+ /**
7
+ * Extended Reference de um Person: subset denormalizado ({ _id, name })
8
+ * embutido onde o nome é lido junto do doc (ex.: user.person). O documento
9
+ * completo (name, phone, audit) continua na collection `people`.
10
+ */
11
+ exports.personRefSchema = s.object({
12
+ _id: s.string(),
13
+ name: s.string(),
14
+ });
15
+ //# sourceMappingURL=person-ref-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-ref-schema.js","sourceRoot":"","sources":["../../../../src/core/data/person/person-ref-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA"}