mintly-lib 1.1.0 → 2.0.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 (141) hide show
  1. package/build/clients/auth-client.d.ts +25 -0
  2. package/build/clients/auth-client.d.ts.map +1 -0
  3. package/build/clients/auth-client.js +52 -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/base-client.d.ts +7 -6
  26. package/build/core/client/base-client.d.ts.map +1 -1
  27. package/build/core/client/http-base-client.d.ts +7 -6
  28. package/build/core/client/http-base-client.d.ts.map +1 -1
  29. package/build/core/client/http-base-client.js +13 -12
  30. package/build/core/client/http-base-client.js.map +1 -1
  31. package/build/core/client/master-client.d.ts +5 -1
  32. package/build/core/client/master-client.d.ts.map +1 -1
  33. package/build/core/client/master-client.js +4 -0
  34. package/build/core/client/master-client.js.map +1 -1
  35. package/build/core/client/request-config.d.ts +9 -0
  36. package/build/core/client/request-config.d.ts.map +1 -0
  37. package/build/core/client/request-config.js +12 -0
  38. package/build/core/client/request-config.js.map +1 -0
  39. package/build/core/data/auth/auth-response.d.ts +21 -0
  40. package/build/core/data/auth/auth-response.d.ts.map +1 -0
  41. package/build/core/data/auth/auth-response.js +3 -0
  42. package/build/core/data/auth/auth-response.js.map +1 -0
  43. package/build/core/data/auth/index.d.ts +8 -0
  44. package/build/core/data/auth/index.d.ts.map +1 -0
  45. package/build/core/data/auth/index.js +10 -0
  46. package/build/core/data/auth/index.js.map +1 -0
  47. package/build/core/data/auth/login-schema.d.ts +17 -0
  48. package/build/core/data/auth/login-schema.d.ts.map +1 -0
  49. package/build/core/data/auth/login-schema.js +14 -0
  50. package/build/core/data/auth/login-schema.js.map +1 -0
  51. package/build/core/data/auth/password-policy.d.ts +7 -0
  52. package/build/core/data/auth/password-policy.d.ts.map +1 -0
  53. package/build/core/data/auth/password-policy.js +14 -0
  54. package/build/core/data/auth/password-policy.js.map +1 -0
  55. package/build/core/data/auth/reset-password-request.d.ts +10 -0
  56. package/build/core/data/auth/reset-password-request.d.ts.map +1 -0
  57. package/build/core/data/auth/reset-password-request.js +3 -0
  58. package/build/core/data/auth/reset-password-request.js.map +1 -0
  59. package/build/core/data/auth/signup-schema.d.ts +199 -0
  60. package/build/core/data/auth/signup-schema.d.ts.map +1 -0
  61. package/build/core/data/auth/signup-schema.js +21 -0
  62. package/build/core/data/auth/signup-schema.js.map +1 -0
  63. package/build/core/data/common/audit.d.ts +24 -0
  64. package/build/core/data/common/audit.d.ts.map +1 -0
  65. package/build/core/data/common/audit.js +17 -0
  66. package/build/core/data/common/audit.js.map +1 -0
  67. package/build/core/data/common/index.d.ts +4 -0
  68. package/build/core/data/common/index.d.ts.map +1 -0
  69. package/build/core/data/common/index.js +8 -0
  70. package/build/core/data/common/index.js.map +1 -0
  71. package/build/core/data/common/status.d.ts +5 -0
  72. package/build/core/data/common/status.d.ts.map +1 -0
  73. package/build/core/data/common/status.js +9 -0
  74. package/build/core/data/common/status.js.map +1 -0
  75. package/build/core/data/financial/financial-account-entity.d.ts +5 -0
  76. package/build/core/data/financial/financial-account-entity.d.ts.map +1 -0
  77. package/build/core/data/financial/financial-account-entity.js +3 -0
  78. package/build/core/data/financial/financial-account-entity.js.map +1 -0
  79. package/build/core/data/financial/financial-account-schema.d.ts +81 -0
  80. package/build/core/data/financial/financial-account-schema.d.ts.map +1 -0
  81. package/build/core/data/financial/financial-account-schema.js +25 -0
  82. package/build/core/data/financial/financial-account-schema.js.map +1 -0
  83. package/build/core/data/financial/financial-category-entity.d.ts +5 -0
  84. package/build/core/data/financial/financial-category-entity.d.ts.map +1 -0
  85. package/build/core/data/financial/financial-category-entity.js +3 -0
  86. package/build/core/data/financial/financial-category-entity.js.map +1 -0
  87. package/build/core/data/financial/financial-category-schema.d.ts +87 -0
  88. package/build/core/data/financial/financial-category-schema.d.ts.map +1 -0
  89. package/build/core/data/financial/financial-category-schema.js +33 -0
  90. package/build/core/data/financial/financial-category-schema.js.map +1 -0
  91. package/build/core/data/financial/index.d.ts +5 -0
  92. package/build/core/data/financial/index.d.ts.map +1 -0
  93. package/build/core/data/financial/index.js +12 -0
  94. package/build/core/data/financial/index.js.map +1 -0
  95. package/build/core/data/index.d.ts +5 -0
  96. package/build/core/data/index.d.ts.map +1 -1
  97. package/build/core/data/index.js +5 -0
  98. package/build/core/data/index.js.map +1 -1
  99. package/build/core/data/person/index.d.ts +2 -0
  100. package/build/core/data/person/index.d.ts.map +1 -1
  101. package/build/core/data/person/index.js +3 -1
  102. package/build/core/data/person/index.js.map +1 -1
  103. package/build/core/data/person/person-ref-schema.d.ts +18 -0
  104. package/build/core/data/person/person-ref-schema.d.ts.map +1 -0
  105. package/build/core/data/person/person-ref-schema.js +15 -0
  106. package/build/core/data/person/person-ref-schema.js.map +1 -0
  107. package/build/core/data/person/person-schema.d.ts +51 -3
  108. package/build/core/data/person/person-schema.d.ts.map +1 -1
  109. package/build/core/data/person/person-schema.js +3 -1
  110. package/build/core/data/person/person-schema.js.map +1 -1
  111. package/build/core/data/request/headers.d.ts +11 -1
  112. package/build/core/data/request/headers.d.ts.map +1 -1
  113. package/build/core/data/restaurant/index.d.ts +3 -0
  114. package/build/core/data/restaurant/index.d.ts.map +1 -0
  115. package/build/core/data/restaurant/index.js +6 -0
  116. package/build/core/data/restaurant/index.js.map +1 -0
  117. package/build/core/data/restaurant/restaurant-entity.d.ts +5 -0
  118. package/build/core/data/restaurant/restaurant-entity.d.ts.map +1 -0
  119. package/build/core/data/restaurant/restaurant-entity.js +3 -0
  120. package/build/core/data/restaurant/restaurant-entity.js.map +1 -0
  121. package/build/core/data/restaurant/restaurant-schema.d.ts +56 -0
  122. package/build/core/data/restaurant/restaurant-schema.d.ts.map +1 -0
  123. package/build/core/data/restaurant/restaurant-schema.js +11 -0
  124. package/build/core/data/restaurant/restaurant-schema.js.map +1 -0
  125. package/build/core/data/user/index.d.ts +3 -0
  126. package/build/core/data/user/index.d.ts.map +1 -0
  127. package/build/core/data/user/index.js +8 -0
  128. package/build/core/data/user/index.js.map +1 -0
  129. package/build/core/data/user/user-entity.d.ts +5 -0
  130. package/build/core/data/user/user-entity.d.ts.map +1 -0
  131. package/build/core/data/user/user-entity.js +3 -0
  132. package/build/core/data/user/user-entity.js.map +1 -0
  133. package/build/core/data/user/user-schema.d.ts +118 -0
  134. package/build/core/data/user/user-schema.d.ts.map +1 -0
  135. package/build/core/data/user/user-schema.js +35 -0
  136. package/build/core/data/user/user-schema.js.map +1 -0
  137. package/build/core/index.d.ts +1 -0
  138. package/build/core/index.d.ts.map +1 -1
  139. package/build/core/index.js +3 -1
  140. package/build/core/index.js.map +1 -1
  141. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password-request.js","sourceRoot":"","sources":["../../../../src/core/data/auth/reset-password-request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,199 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ /**
3
+ * Payload do cadastro inicial. O `person` reaproveita o personSchema sem o
4
+ * audit (`omit`), já que esses campos só são definidos no servidor. A
5
+ * confirmação de senha e o aceite obrigatório são validações cross-field
6
+ * tratadas no use case da API.
7
+ */
8
+ export declare const signupRequestSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
9
+ person: import("@ascendance-hub/sapphire-core").ObjectField<Omit<{
10
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
11
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
12
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
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").ObjectOutput<{
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
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
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
+ }>>;
28
+ }, "audit">, import("@ascendance-hub/sapphire-core").ObjectOutput<Omit<{
29
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
30
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
31
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
32
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
33
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
34
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
35
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
36
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
37
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
38
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
39
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
40
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
41
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
42
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
43
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
44
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
45
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
46
+ }>>;
47
+ }, "audit">>, import("@ascendance-hub/sapphire-core").ObjectInput<Omit<{
48
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
49
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
50
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
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
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
56
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
57
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
58
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
59
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
60
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
61
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
62
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
63
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
64
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
65
+ }>>;
66
+ }, "audit">>>;
67
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
68
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
69
+ restaurantName: import("@ascendance-hub/sapphire-core").StringField<string, string>;
70
+ termsAccepted: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
71
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
72
+ person: import("@ascendance-hub/sapphire-core").ObjectField<Omit<{
73
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
74
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
75
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
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").ObjectOutput<{
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
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
86
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
87
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
88
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
89
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
90
+ }>>;
91
+ }, "audit">, import("@ascendance-hub/sapphire-core").ObjectOutput<Omit<{
92
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
93
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
94
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
95
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
96
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
97
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
98
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
99
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
100
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
101
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
102
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
103
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
104
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
105
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
106
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
107
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
108
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
109
+ }>>;
110
+ }, "audit">>, import("@ascendance-hub/sapphire-core").ObjectInput<Omit<{
111
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
112
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
113
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
114
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
115
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
116
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
117
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
118
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
119
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
120
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
121
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
122
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
123
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
124
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
125
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
126
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
127
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
128
+ }>>;
129
+ }, "audit">>>;
130
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
131
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
132
+ restaurantName: import("@ascendance-hub/sapphire-core").StringField<string, string>;
133
+ termsAccepted: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
134
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
135
+ person: import("@ascendance-hub/sapphire-core").ObjectField<Omit<{
136
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
137
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
138
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
139
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
140
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
141
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
142
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
143
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
144
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
145
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
146
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
147
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
148
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
149
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
150
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
151
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
152
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
153
+ }>>;
154
+ }, "audit">, import("@ascendance-hub/sapphire-core").ObjectOutput<Omit<{
155
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
156
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
157
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
158
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
159
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
160
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
161
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
162
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
163
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
164
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
165
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
166
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
167
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
168
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
169
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
170
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
171
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
172
+ }>>;
173
+ }, "audit">>, import("@ascendance-hub/sapphire-core").ObjectInput<Omit<{
174
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
175
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
176
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
177
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
178
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
179
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
180
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
181
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
182
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
183
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
184
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
185
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
186
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
187
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
188
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
189
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
190
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
191
+ }>>;
192
+ }, "audit">>>;
193
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
194
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
195
+ restaurantName: import("@ascendance-hub/sapphire-core").StringField<string, string>;
196
+ termsAccepted: import("@ascendance-hub/sapphire-core").BooleanField<boolean, boolean>;
197
+ }>>;
198
+ export type SignupRequest = Infer<typeof signupRequestSchema>;
199
+ //# sourceMappingURL=signup-schema.d.ts.map
@@ -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"}