mintly-lib 1.1.0 → 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 (121) 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/core/data/auth/auth-response.js +3 -0
  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 +2 -0
  86. package/build/core/data/person/index.d.ts.map +1 -1
  87. package/build/core/data/person/index.js +3 -1
  88. package/build/core/data/person/index.js.map +1 -1
  89. package/build/core/data/person/person-ref-schema.d.ts +18 -0
  90. package/build/core/data/person/person-ref-schema.d.ts.map +1 -0
  91. package/build/core/data/person/person-ref-schema.js +15 -0
  92. package/build/core/data/person/person-ref-schema.js.map +1 -0
  93. package/build/core/data/person/person-schema.d.ts +51 -3
  94. package/build/core/data/person/person-schema.d.ts.map +1 -1
  95. package/build/core/data/person/person-schema.js +3 -1
  96. package/build/core/data/person/person-schema.js.map +1 -1
  97. package/build/core/data/restaurant/index.d.ts +3 -0
  98. package/build/core/data/restaurant/index.d.ts.map +1 -0
  99. package/build/core/data/restaurant/index.js +6 -0
  100. package/build/core/data/restaurant/index.js.map +1 -0
  101. package/build/core/data/restaurant/restaurant-entity.d.ts +5 -0
  102. package/build/core/data/restaurant/restaurant-entity.d.ts.map +1 -0
  103. package/build/core/data/restaurant/restaurant-entity.js +3 -0
  104. package/build/core/data/restaurant/restaurant-entity.js.map +1 -0
  105. package/build/core/data/restaurant/restaurant-schema.d.ts +56 -0
  106. package/build/core/data/restaurant/restaurant-schema.d.ts.map +1 -0
  107. package/build/core/data/restaurant/restaurant-schema.js +11 -0
  108. package/build/core/data/restaurant/restaurant-schema.js.map +1 -0
  109. package/build/core/data/user/index.d.ts +3 -0
  110. package/build/core/data/user/index.d.ts.map +1 -0
  111. package/build/core/data/user/index.js +8 -0
  112. package/build/core/data/user/index.js.map +1 -0
  113. package/build/core/data/user/user-entity.d.ts +5 -0
  114. package/build/core/data/user/user-entity.d.ts.map +1 -0
  115. package/build/core/data/user/user-entity.js +3 -0
  116. package/build/core/data/user/user-entity.js.map +1 -0
  117. package/build/core/data/user/user-schema.d.ts +118 -0
  118. package/build/core/data/user/user-schema.d.ts.map +1 -0
  119. package/build/core/data/user/user-schema.js +35 -0
  120. package/build/core/data/user/user-schema.js.map +1 -0
  121. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import type { ResponseDto } from '../core/data/request/response';
3
+ import type { SignupRequest } from '../core/data/auth/signup-schema';
4
+ import type { LoginRequest } from '../core/data/auth/login-schema';
5
+ import type { SignupResult, LoginResult, RefreshResult } from '../core/data/auth/auth-response';
6
+ /**
7
+ * Cliente de autenticação (RPC, não CRUD): cadastro, login, refresh e logout.
8
+ * Respostas seguem o mesmo envelope ResponseDto do restante da API.
9
+ */
10
+ export declare class AuthClient {
11
+ protected connection: AxiosInstance;
12
+ constructor();
13
+ signup(body: SignupRequest): Promise<ResponseDto<SignupResult>>;
14
+ login(body: LoginRequest): Promise<ResponseDto<LoginResult>>;
15
+ refresh(refreshToken: string): Promise<ResponseDto<RefreshResult>>;
16
+ logout(refreshToken: string): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=auth-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-client.d.ts","sourceRoot":"","sources":["../../src/clients/auth-client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/F;;;GAGG;AACH,qBAAa,UAAU;IACrB,SAAS,CAAC,UAAU,EAAE,aAAa,CAAA;;IAW7B,MAAM,CAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAKhE,KAAK,CAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAK7D,OAAO,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAKnE,MAAM,CAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGnD"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AuthClient = void 0;
7
+ const axios_1 = __importDefault(require("axios"));
8
+ /**
9
+ * Cliente de autenticação (RPC, não CRUD): cadastro, login, refresh e logout.
10
+ * Respostas seguem o mesmo envelope ResponseDto do restante da API.
11
+ */
12
+ class AuthClient {
13
+ constructor() {
14
+ this.connection = axios_1.default.create({
15
+ baseURL: process.env.BACK_END_URL + '/auth',
16
+ headers: {
17
+ 'Content-Type': 'application/json',
18
+ },
19
+ });
20
+ }
21
+ async signup(body) {
22
+ const response = await this.connection.post('/signup', body);
23
+ return response.data;
24
+ }
25
+ async login(body) {
26
+ const response = await this.connection.post('/login', body);
27
+ return response.data;
28
+ }
29
+ async refresh(refreshToken) {
30
+ const response = await this.connection.post('/refresh', { refreshToken });
31
+ return response.data;
32
+ }
33
+ async logout(refreshToken) {
34
+ await this.connection.post('/logout', { refreshToken });
35
+ }
36
+ }
37
+ exports.AuthClient = AuthClient;
38
+ //# sourceMappingURL=auth-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-client.js","sourceRoot":"","sources":["../../src/clients/auth-client.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA4C;AAM5C;;;GAGG;AACH,MAAa,UAAU;IAGrB;QACE,IAAI,CAAC,UAAU,GAAG,eAAK,CAAC,MAAM,CAAC;YAC7B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO;YAC3C,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAE,IAAmB;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA4B,SAAS,EAAE,IAAI,CAAC,CAAA;QACvF,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,KAAK,CAAE,IAAkB;QAC7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA2B,QAAQ,EAAE,IAAI,CAAC,CAAA;QACrF,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,OAAO,CAAE,YAAoB;QACjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA6B,UAAU,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;QACrG,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAE,YAAoB;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IACzD,CAAC;CACF;AA9BD,gCA8BC"}
@@ -0,0 +1,6 @@
1
+ import { HttpBaseClient } from '../core/client/http-base-client';
2
+ import type { FinancialAccount } from '../core/data/financial/financial-account-entity';
3
+ export declare class FinancialAccountClient extends HttpBaseClient<FinancialAccount> {
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=financial-account-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-client.d.ts","sourceRoot":"","sources":["../../src/clients/financial-account-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAEvF,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;;CAI3E"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialAccountClient = void 0;
4
+ const http_base_client_1 = require("../core/client/http-base-client");
5
+ class FinancialAccountClient extends http_base_client_1.HttpBaseClient {
6
+ constructor() {
7
+ super('financial-accounts');
8
+ }
9
+ }
10
+ exports.FinancialAccountClient = FinancialAccountClient;
11
+ //# sourceMappingURL=financial-account-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-account-client.js","sourceRoot":"","sources":["../../src/clients/financial-account-client.ts"],"names":[],"mappings":";;;AAAA,sEAAgE;AAGhE,MAAa,sBAAuB,SAAQ,iCAAgC;IAC1E;QACE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAC7B,CAAC;CACF;AAJD,wDAIC"}
@@ -0,0 +1,6 @@
1
+ import { HttpBaseClient } from '../core/client/http-base-client';
2
+ import type { FinancialCategory } from '../core/data/financial/financial-category-entity';
3
+ export declare class FinancialCategoryClient extends HttpBaseClient<FinancialCategory> {
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=financial-category-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-client.d.ts","sourceRoot":"","sources":["../../src/clients/financial-category-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAA;AAEzF,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,iBAAiB,CAAC;;CAI7E"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FinancialCategoryClient = void 0;
4
+ const http_base_client_1 = require("../core/client/http-base-client");
5
+ class FinancialCategoryClient extends http_base_client_1.HttpBaseClient {
6
+ constructor() {
7
+ super('financial-categories');
8
+ }
9
+ }
10
+ exports.FinancialCategoryClient = FinancialCategoryClient;
11
+ //# sourceMappingURL=financial-category-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-client.js","sourceRoot":"","sources":["../../src/clients/financial-category-client.ts"],"names":[],"mappings":";;;AAAA,sEAAgE;AAGhE,MAAa,uBAAwB,SAAQ,iCAAiC;IAC5E;QACE,KAAK,CAAC,sBAAsB,CAAC,CAAA;IAC/B,CAAC;CACF;AAJD,0DAIC"}
@@ -1,2 +1,6 @@
1
+ export { AuthClient } from './auth-client';
1
2
  export { PersonClient } from './person-client';
3
+ export { RestaurantClient } from './restaurant-client';
4
+ export { FinancialAccountClient } from './financial-account-client';
5
+ export { FinancialCategoryClient } from './financial-category-client';
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA"}
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PersonClient = void 0;
3
+ exports.FinancialCategoryClient = exports.FinancialAccountClient = exports.RestaurantClient = exports.PersonClient = exports.AuthClient = void 0;
4
+ var auth_client_1 = require("./auth-client");
5
+ Object.defineProperty(exports, "AuthClient", { enumerable: true, get: function () { return auth_client_1.AuthClient; } });
4
6
  var person_client_1 = require("./person-client");
5
7
  Object.defineProperty(exports, "PersonClient", { enumerable: true, get: function () { return person_client_1.PersonClient; } });
8
+ var restaurant_client_1 = require("./restaurant-client");
9
+ Object.defineProperty(exports, "RestaurantClient", { enumerable: true, get: function () { return restaurant_client_1.RestaurantClient; } });
10
+ var financial_account_client_1 = require("./financial-account-client");
11
+ Object.defineProperty(exports, "FinancialAccountClient", { enumerable: true, get: function () { return financial_account_client_1.FinancialAccountClient; } });
12
+ var financial_category_client_1 = require("./financial-category-client");
13
+ Object.defineProperty(exports, "FinancialCategoryClient", { enumerable: true, get: function () { return financial_category_client_1.FinancialCategoryClient; } });
6
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAArC,6GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAAjC,yGAAA,UAAU,OAAA;AACnB,iDAA8C;AAArC,6GAAA,YAAY,OAAA;AACrB,yDAAsD;AAA7C,qHAAA,gBAAgB,OAAA;AACzB,uEAAmE;AAA1D,kIAAA,sBAAsB,OAAA;AAC/B,yEAAqE;AAA5D,oIAAA,uBAAuB,OAAA"}
@@ -1,9 +1,6 @@
1
1
  import { HttpBaseClient } from '../core/client/http-base-client';
2
- export declare class PersonClient extends HttpBaseClient<{
3
- id: string;
4
- name: string;
5
- age: number;
6
- }> {
2
+ import type { Person } from '../core/data/person/person-entity';
3
+ export declare class PersonClient extends HttpBaseClient<Person> {
7
4
  constructor();
8
5
  }
9
6
  //# sourceMappingURL=person-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"person-client.d.ts","sourceRoot":"","sources":["../../src/clients/person-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,qBAAa,YAAa,SAAQ,cAAc,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;;CAI1F"}
1
+ {"version":3,"file":"person-client.d.ts","sourceRoot":"","sources":["../../src/clients/person-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE/D,qBAAa,YAAa,SAAQ,cAAc,CAAC,MAAM,CAAC;;CAIvD"}
@@ -4,7 +4,7 @@ exports.PersonClient = void 0;
4
4
  const http_base_client_1 = require("../core/client/http-base-client");
5
5
  class PersonClient extends http_base_client_1.HttpBaseClient {
6
6
  constructor() {
7
- super('person');
7
+ super('people');
8
8
  }
9
9
  }
10
10
  exports.PersonClient = PersonClient;
@@ -1 +1 @@
1
- {"version":3,"file":"person-client.js","sourceRoot":"","sources":["../../src/clients/person-client.ts"],"names":[],"mappings":";;;AAAA,sEAAgE;AAEhE,MAAa,YAAa,SAAQ,iCAAyD;IACzF;QACE,KAAK,CAAC,QAAQ,CAAC,CAAA;IACjB,CAAC;CACF;AAJD,oCAIC"}
1
+ {"version":3,"file":"person-client.js","sourceRoot":"","sources":["../../src/clients/person-client.ts"],"names":[],"mappings":";;;AAAA,sEAAgE;AAGhE,MAAa,YAAa,SAAQ,iCAAsB;IACtD;QACE,KAAK,CAAC,QAAQ,CAAC,CAAA;IACjB,CAAC;CACF;AAJD,oCAIC"}
@@ -0,0 +1,6 @@
1
+ import { HttpBaseClient } from '../core/client/http-base-client';
2
+ import type { Restaurant } from '../core/data/restaurant/restaurant-entity';
3
+ export declare class RestaurantClient extends HttpBaseClient<Restaurant> {
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=restaurant-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-client.d.ts","sourceRoot":"","sources":["../../src/clients/restaurant-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAA;AAE3E,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,UAAU,CAAC;;CAI/D"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RestaurantClient = void 0;
4
+ const http_base_client_1 = require("../core/client/http-base-client");
5
+ class RestaurantClient extends http_base_client_1.HttpBaseClient {
6
+ constructor() {
7
+ super('restaurants');
8
+ }
9
+ }
10
+ exports.RestaurantClient = RestaurantClient;
11
+ //# sourceMappingURL=restaurant-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-client.js","sourceRoot":"","sources":["../../src/clients/restaurant-client.ts"],"names":[],"mappings":";;;AAAA,sEAAgE;AAGhE,MAAa,gBAAiB,SAAQ,iCAA0B;IAC9D;QACE,KAAK,CAAC,aAAa,CAAC,CAAA;IACtB,CAAC;CACF;AAJD,4CAIC"}
@@ -1,6 +1,10 @@
1
- import { PersonClient } from '../../clients';
1
+ import { AuthClient, PersonClient, RestaurantClient, FinancialAccountClient, FinancialCategoryClient } from '../../clients';
2
2
  export declare class MasterClient {
3
+ authClient: AuthClient;
3
4
  personClient: PersonClient;
5
+ restaurantClient: RestaurantClient;
6
+ financialAccountClient: FinancialAccountClient;
7
+ financialCategoryClient: FinancialCategoryClient;
4
8
  constructor();
5
9
  }
6
10
  //# sourceMappingURL=master-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-client.d.ts","sourceRoot":"","sources":["../../../src/core/client/master-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,qBAAa,YAAY;IACvB,YAAY,EAAE,YAAY,CAAA;;CAI3B"}
1
+ {"version":3,"file":"master-client.d.ts","sourceRoot":"","sources":["../../../src/core/client/master-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,eAAe,CAAA;AAEtB,qBAAa,YAAY;IACvB,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,YAAY,CAAA;IAC1B,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,sBAAsB,EAAE,sBAAsB,CAAA;IAC9C,uBAAuB,EAAE,uBAAuB,CAAA;;CASjD"}
@@ -4,7 +4,11 @@ exports.MasterClient = void 0;
4
4
  const clients_1 = require("../../clients");
5
5
  class MasterClient {
6
6
  constructor() {
7
+ this.authClient = new clients_1.AuthClient();
7
8
  this.personClient = new clients_1.PersonClient();
9
+ this.restaurantClient = new clients_1.RestaurantClient();
10
+ this.financialAccountClient = new clients_1.FinancialAccountClient();
11
+ this.financialCategoryClient = new clients_1.FinancialCategoryClient();
8
12
  }
9
13
  }
10
14
  exports.MasterClient = MasterClient;
@@ -1 +1 @@
1
- {"version":3,"file":"master-client.js","sourceRoot":"","sources":["../../../src/core/client/master-client.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAE5C,MAAa,YAAY;IAEvB;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAA;IACxC,CAAC;CACF;AALD,oCAKC"}
1
+ {"version":3,"file":"master-client.js","sourceRoot":"","sources":["../../../src/core/client/master-client.ts"],"names":[],"mappings":";;;AAAA,2CAMsB;AAEtB,MAAa,YAAY;IAOvB;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAU,EAAE,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAA;QACtC,IAAI,CAAC,gBAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAA;QAC9C,IAAI,CAAC,sBAAsB,GAAG,IAAI,gCAAsB,EAAE,CAAA;QAC1D,IAAI,CAAC,uBAAuB,GAAG,IAAI,iCAAuB,EAAE,CAAA;IAC9D,CAAC;CACF;AAdD,oCAcC"}
@@ -0,0 +1,17 @@
1
+ import type { User } from '../user/user-entity';
2
+ import type { Restaurant } from '../restaurant/restaurant-entity';
3
+ export interface AuthTokens {
4
+ accessToken: string;
5
+ refreshToken: string | null;
6
+ }
7
+ /** Visão pública do usuário — nunca expõe passwordHash. */
8
+ export type AuthUser = Omit<User, 'passwordHash'>;
9
+ export interface SignupResult extends AuthTokens {
10
+ user: AuthUser;
11
+ restaurant: Restaurant;
12
+ }
13
+ export interface LoginResult extends AuthTokens {
14
+ user: AuthUser;
15
+ }
16
+ export type RefreshResult = AuthTokens;
17
+ //# sourceMappingURL=auth-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-response.d.ts","sourceRoot":"","sources":["../../../../src/core/data/auth/auth-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,2DAA2D;AAC3D,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CAAA;AAEjD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=auth-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-response.js","sourceRoot":"","sources":["../../../../src/core/data/auth/auth-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export { passwordSchema } from './password-policy';
2
+ export { signupRequestSchema } from './signup-schema';
3
+ export type { SignupRequest } from './signup-schema';
4
+ export { loginRequestSchema } from './login-schema';
5
+ export type { LoginRequest } from './login-schema';
6
+ export type { AuthTokens, AuthUser, SignupResult, LoginResult, RefreshResult, } from './auth-response';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,YAAY,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loginRequestSchema = exports.signupRequestSchema = exports.passwordSchema = void 0;
4
+ var password_policy_1 = require("./password-policy");
5
+ Object.defineProperty(exports, "passwordSchema", { enumerable: true, get: function () { return password_policy_1.passwordSchema; } });
6
+ var signup_schema_1 = require("./signup-schema");
7
+ Object.defineProperty(exports, "signupRequestSchema", { enumerable: true, get: function () { return signup_schema_1.signupRequestSchema; } });
8
+ var login_schema_1 = require("./login-schema");
9
+ Object.defineProperty(exports, "loginRequestSchema", { enumerable: true, get: function () { return login_schema_1.loginRequestSchema; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/auth/index.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAAzC,iHAAA,cAAc,OAAA;AACvB,iDAAqD;AAA5C,oHAAA,mBAAmB,OAAA;AAE5B,+CAAmD;AAA1C,kHAAA,kBAAkB,OAAA"}
@@ -0,0 +1,17 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ /**
3
+ * Payload do login. Não aplica a política de senha (isso é só no cadastro
4
+ * e na redefinição) — aqui valida apenas o formato do e-mail.
5
+ */
6
+ export declare const loginRequestSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
7
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
8
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
9
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
10
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
11
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
12
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
13
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
14
+ password: import("@ascendance-hub/sapphire-core").StringField<string, string>;
15
+ }>>;
16
+ export type LoginRequest = Infer<typeof loginRequestSchema>;
17
+ //# sourceMappingURL=login-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/auth/login-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAI1D;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;GAG7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loginRequestSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const s = new sapphire_core_1.Sapphire();
6
+ /**
7
+ * Payload do login. Não aplica a política de senha (isso é só no cadastro
8
+ * e na redefinição) — aqui valida apenas o formato do e-mail.
9
+ */
10
+ exports.loginRequestSchema = s.object({
11
+ email: s.string().email({ message: 'Informe um e-mail válido.' }),
12
+ password: s.string(),
13
+ });
14
+ //# sourceMappingURL=login-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-schema.js","sourceRoot":"","sources":["../../../../src/core/data/auth/login-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;GAGG;AACU,QAAA,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACjE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Política de senha compartilhada: mínimo 8 caracteres, ao menos
3
+ * 1 maiúscula, 1 minúscula e 1 número. Reutilizada no cadastro e na
4
+ * redefinição de senha (MIN-59) para manter a regra num único lugar.
5
+ */
6
+ export declare const passwordSchema: import("@ascendance-hub/sapphire-core").StringField<string, string>;
7
+ //# sourceMappingURL=password-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy.d.ts","sourceRoot":"","sources":["../../../../src/core/data/auth/password-policy.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,cAAc,qEAKxB,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.passwordSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const s = new sapphire_core_1.Sapphire();
6
+ /**
7
+ * Política de senha compartilhada: mínimo 8 caracteres, ao menos
8
+ * 1 maiúscula, 1 minúscula e 1 número. Reutilizada no cadastro e na
9
+ * redefinição de senha (MIN-59) para manter a regra num único lugar.
10
+ */
11
+ exports.passwordSchema = s.string()
12
+ .min(8, { message: 'A senha deve ter pelo menos 8 caracteres.' })
13
+ .regex(/(?=.*[A-Z])(?=.*[a-z])(?=.*\d)/, { message: 'A senha deve conter ao menos uma letra maiúscula, uma minúscula e um número.' });
14
+ //# sourceMappingURL=password-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy.js","sourceRoot":"","sources":["../../../../src/core/data/auth/password-policy.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAExD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE;KACrC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;KAChE,KAAK,CACJ,gCAAgC,EAChC,EAAE,OAAO,EAAE,8EAA8E,EAAE,CAC5F,CAAA"}
@@ -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