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,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.financialCategorySchema = exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const status_1 = require("../common/status");
6
+ const audit_1 = require("../common/audit");
7
+ const s = new sapphire_core_1.Sapphire();
8
+ var CategoryType;
9
+ (function (CategoryType) {
10
+ CategoryType["Revenue"] = "revenue";
11
+ CategoryType["Expense"] = "expense";
12
+ })(CategoryType || (exports.CategoryType = CategoryType = {}));
13
+ var CategoryBehavior;
14
+ (function (CategoryBehavior) {
15
+ CategoryBehavior["Fixed"] = "fixed";
16
+ CategoryBehavior["Variable"] = "variable";
17
+ })(CategoryBehavior || (exports.CategoryBehavior = CategoryBehavior = {}));
18
+ var OperationalNature;
19
+ (function (OperationalNature) {
20
+ OperationalNature["Operational"] = "operational";
21
+ OperationalNature["NonOperational"] = "nonOperational";
22
+ })(OperationalNature || (exports.OperationalNature = OperationalNature = {}));
23
+ exports.financialCategorySchema = s.object({
24
+ restaurantId: s.string(),
25
+ name: s.string(),
26
+ type: s.type().enum(CategoryType),
27
+ behavior: s.type().enum(CategoryBehavior),
28
+ operationalNature: s.type().enum(OperationalNature),
29
+ status: s.type().enum(status_1.RecordStatus),
30
+ isSystem: s.boolean(),
31
+ audit: audit_1.auditSchema,
32
+ });
33
+ //# sourceMappingURL=financial-category-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-category-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-category-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAEY,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACzC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { FinancialAccount } from './financial-account-entity';
2
+ export { financialAccountSchema, FinancialAccountType } from './financial-account-schema';
3
+ export { FinancialCategory } from './financial-category-entity';
4
+ export { financialCategorySchema, CategoryType, CategoryBehavior, OperationalNature, } from './financial-category-schema';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,6BAA6B,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategorySchema = exports.FinancialAccountType = exports.financialAccountSchema = void 0;
4
+ var financial_account_schema_1 = require("./financial-account-schema");
5
+ Object.defineProperty(exports, "financialAccountSchema", { enumerable: true, get: function () { return financial_account_schema_1.financialAccountSchema; } });
6
+ Object.defineProperty(exports, "FinancialAccountType", { enumerable: true, get: function () { return financial_account_schema_1.FinancialAccountType; } });
7
+ var financial_category_schema_1 = require("./financial-category-schema");
8
+ Object.defineProperty(exports, "financialCategorySchema", { enumerable: true, get: function () { return financial_category_schema_1.financialCategorySchema; } });
9
+ Object.defineProperty(exports, "CategoryType", { enumerable: true, get: function () { return financial_category_schema_1.CategoryType; } });
10
+ Object.defineProperty(exports, "CategoryBehavior", { enumerable: true, get: function () { return financial_category_schema_1.CategoryBehavior; } });
11
+ Object.defineProperty(exports, "OperationalNature", { enumerable: true, get: function () { return financial_category_schema_1.OperationalNature; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/financial/index.ts"],"names":[],"mappings":";;;AACA,uEAAyF;AAAhF,kIAAA,sBAAsB,OAAA;AAAE,gIAAA,oBAAoB,OAAA;AAGrD,yEAKoC;AAJlC,oIAAA,uBAAuB,OAAA;AACvB,yHAAA,YAAY,OAAA;AACZ,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA"}
@@ -1,4 +1,9 @@
1
1
  export * from './api';
2
+ export * from './common';
2
3
  export * from './person';
4
+ export * from './user';
5
+ export * from './restaurant';
6
+ export * from './financial';
7
+ export * from './auth';
3
8
  export * from './request';
4
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
@@ -15,6 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api"), exports);
18
+ __exportStar(require("./common"), exports);
18
19
  __exportStar(require("./person"), exports);
20
+ __exportStar(require("./user"), exports);
21
+ __exportStar(require("./restaurant"), exports);
22
+ __exportStar(require("./financial"), exports);
23
+ __exportStar(require("./auth"), exports);
19
24
  __exportStar(require("./request"), exports);
20
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,2CAAwB;AACxB,yCAAsB;AACtB,+CAA4B;AAC5B,8CAA2B;AAC3B,yCAAsB;AACtB,4CAAyB"}
@@ -1,3 +1,5 @@
1
1
  export { Person } from './person-entity';
2
2
  export { personSchema } from './person-schema';
3
+ export { personRefSchema } from './person-ref-schema';
4
+ export type { PersonRef } from './person-ref-schema';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.personSchema = void 0;
3
+ exports.personRefSchema = exports.personSchema = void 0;
4
4
  var person_schema_1 = require("./person-schema");
5
5
  Object.defineProperty(exports, "personSchema", { enumerable: true, get: function () { return person_schema_1.personSchema; } });
6
+ var person_ref_schema_1 = require("./person-ref-schema");
7
+ Object.defineProperty(exports, "personRefSchema", { enumerable: true, get: function () { return person_ref_schema_1.personRefSchema; } });
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":";;;AACA,iDAA8C;AAArC,6GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/person/index.ts"],"names":[],"mappings":";;;AACA,iDAA8C;AAArC,6GAAA,YAAY,OAAA;AACrB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA"}
@@ -0,0 +1,18 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ /**
3
+ * Extended Reference de um Person: subset denormalizado ({ _id, name })
4
+ * embutido onde o nome é lido junto do doc (ex.: user.person). O documento
5
+ * completo (name, phone, audit) continua na collection `people`.
6
+ */
7
+ export declare const personRefSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
8
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
9
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
10
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
11
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
12
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
13
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
14
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
15
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
16
+ }>>;
17
+ export type PersonRef = Infer<typeof personRefSchema>;
18
+ //# sourceMappingURL=person-ref-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-ref-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-ref-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAI1D;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;GAG1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personRefSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const s = new sapphire_core_1.Sapphire();
6
+ /**
7
+ * Extended Reference de um Person: subset denormalizado ({ _id, name })
8
+ * embutido onde o nome é lido junto do doc (ex.: user.person). O documento
9
+ * completo (name, phone, audit) continua na collection `people`.
10
+ */
11
+ exports.personRefSchema = s.object({
12
+ _id: s.string(),
13
+ name: s.string(),
14
+ });
15
+ //# sourceMappingURL=person-ref-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-ref-schema.js","sourceRoot":"","sources":["../../../../src/core/data/person/person-ref-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA"}
@@ -1,11 +1,59 @@
1
1
  export declare const personSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
2
2
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
3
- age: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
3
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
4
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
5
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
6
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
7
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
8
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
9
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
10
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
11
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
12
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
13
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
14
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
15
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
16
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
17
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
18
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
19
+ }>>;
4
20
  }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
5
21
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
6
- age: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
22
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
23
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
24
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
25
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
26
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
27
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
28
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
29
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
30
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
31
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
32
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
33
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
34
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
35
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
36
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
37
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
38
+ }>>;
7
39
  }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
8
40
  name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
9
- age: import("@ascendance-hub/sapphire-core").NumberField<number, number>;
41
+ phone: import("@ascendance-hub/sapphire-core").StringField<string, string>;
42
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
43
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
44
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
45
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
46
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
47
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
48
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
49
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
50
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
51
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
52
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
53
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
54
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
55
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
56
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
57
+ }>>;
10
58
  }>>;
11
59
  //# sourceMappingURL=person-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"person-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;GAGvB,CAAA"}
1
+ {"version":3,"file":"person-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/person/person-schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIvB,CAAA"}
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.personSchema = void 0;
4
4
  const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const audit_1 = require("../common/audit");
5
6
  const s = new sapphire_core_1.Sapphire();
6
7
  exports.personSchema = s.object({
7
8
  name: s.string(),
8
- age: s.number(),
9
+ phone: s.string(),
10
+ audit: audit_1.auditSchema,
9
11
  });
10
12
  //# sourceMappingURL=person-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"person-schema.js","sourceRoot":"","sources":["../../../../src/core/data/person/person-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAExD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAEX,QAAA,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA"}
1
+ {"version":3,"file":"person-schema.js","sourceRoot":"","sources":["../../../../src/core/data/person/person-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAEX,QAAA,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
@@ -1,5 +1,15 @@
1
+ /**
2
+ * Headers de contexto enviados em toda requisição à API.
3
+ *
4
+ * - `env` é **obrigatório**: seleciona o banco do tenant (multi-tenant por env).
5
+ * - `authorization` (Bearer token) e `restaurantId` aparecem nas rotas
6
+ * protegidas — opcionais porque rotas públicas (ex.: login) não os têm.
7
+ * - O index signature mantém o type aberto para headers adicionais.
8
+ */
1
9
  export type Headers = {
2
- [key: string]: string;
3
10
  env: string;
11
+ authorization?: string;
12
+ restaurantId?: string;
13
+ [key: string]: string | undefined;
4
14
  };
5
15
  //# sourceMappingURL=headers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../src/core/data/request/headers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
1
+ {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../src/core/data/request/headers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAClC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Restaurant } from './restaurant-entity';
2
+ export { restaurantSchema } from './restaurant-schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/restaurant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.restaurantSchema = void 0;
4
+ var restaurant_schema_1 = require("./restaurant-schema");
5
+ Object.defineProperty(exports, "restaurantSchema", { enumerable: true, get: function () { return restaurant_schema_1.restaurantSchema; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/restaurant/index.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AAA7C,qHAAA,gBAAgB,OAAA"}
@@ -0,0 +1,5 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ import { Entity } from '../api/entity';
3
+ import { restaurantSchema } from './restaurant-schema';
4
+ export type Restaurant = Infer<typeof restaurantSchema> & Entity;
5
+ //# sourceMappingURL=restaurant-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/restaurant/restaurant-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,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAAG,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=restaurant-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-entity.js","sourceRoot":"","sources":["../../../../src/core/data/restaurant/restaurant-entity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ export declare const restaurantSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
2
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
3
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
4
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
5
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
6
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
7
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
8
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
9
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
10
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
11
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
12
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
13
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
14
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
15
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
16
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
17
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
18
+ }>>;
19
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
20
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
21
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
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").ObjectOutput<{
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
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
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
+ }>>;
37
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
38
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
39
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
40
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
41
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
42
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
43
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
44
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
45
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
46
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
47
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
48
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
49
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
50
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
51
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
52
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
53
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
54
+ }>>;
55
+ }>>;
56
+ //# sourceMappingURL=restaurant-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/restaurant/restaurant-schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG3B,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.restaurantSchema = void 0;
4
+ const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
5
+ const audit_1 = require("../common/audit");
6
+ const s = new sapphire_core_1.Sapphire();
7
+ exports.restaurantSchema = s.object({
8
+ name: s.string(),
9
+ audit: audit_1.auditSchema,
10
+ });
11
+ //# sourceMappingURL=restaurant-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restaurant-schema.js","sourceRoot":"","sources":["../../../../src/core/data/restaurant/restaurant-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAEX,QAAA,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { User } from './user-entity';
2
+ export { userSchema, UserStatus, UserRole } from './user-schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/data/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserRole = exports.UserStatus = exports.userSchema = void 0;
4
+ var user_schema_1 = require("./user-schema");
5
+ Object.defineProperty(exports, "userSchema", { enumerable: true, get: function () { return user_schema_1.userSchema; } });
6
+ Object.defineProperty(exports, "UserStatus", { enumerable: true, get: function () { return user_schema_1.UserStatus; } });
7
+ Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_schema_1.UserRole; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/data/user/index.ts"],"names":[],"mappings":";;;AACA,6CAAgE;AAAvD,yGAAA,UAAU,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,uGAAA,QAAQ,OAAA"}
@@ -0,0 +1,5 @@
1
+ import type { Infer } from '@ascendance-hub/sapphire-core';
2
+ import { Entity } from '../api/entity';
3
+ import { userSchema } from './user-schema';
4
+ export type User = Infer<typeof userSchema> & Entity;
5
+ //# sourceMappingURL=user-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-entity.d.ts","sourceRoot":"","sources":["../../../../src/core/data/user/user-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,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-entity.js","sourceRoot":"","sources":["../../../../src/core/data/user/user-entity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,118 @@
1
+ export declare enum UserStatus {
2
+ Active = "active",
3
+ Inactive = "inactive",
4
+ Blocked = "blocked"
5
+ }
6
+ export declare enum UserRole {
7
+ Owner = "owner",
8
+ Member = "member"
9
+ }
10
+ /**
11
+ * Usuário autenticável. O `person` é um Extended Reference ({ _id, name })
12
+ * para o documento em `people`; o e-mail é a credencial e vive aqui (índice
13
+ * único na API).
14
+ */
15
+ export declare const userSchema: import("@ascendance-hub/sapphire-core").ObjectField<{
16
+ person: import("@ascendance-hub/sapphire-core").ObjectField<{
17
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
18
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
19
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
20
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
21
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
22
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
23
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
24
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
25
+ }>>;
26
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
27
+ passwordHash: import("@ascendance-hub/sapphire-core").StringField<string, string>;
28
+ status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
29
+ role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
30
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
31
+ termsAcceptedAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
32
+ lastAccessAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
33
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
34
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
35
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
36
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
37
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
38
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
39
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
40
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
41
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
42
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
43
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
44
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
45
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
46
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
47
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
48
+ }>>;
49
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
50
+ person: import("@ascendance-hub/sapphire-core").ObjectField<{
51
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
52
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
53
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
54
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
55
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
56
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
57
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
58
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
59
+ }>>;
60
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
61
+ passwordHash: import("@ascendance-hub/sapphire-core").StringField<string, string>;
62
+ status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
63
+ role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
64
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
65
+ termsAcceptedAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
66
+ lastAccessAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
67
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
68
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
69
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
70
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
71
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
72
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
73
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
74
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
75
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
76
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
77
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
78
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
79
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
80
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
81
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
82
+ }>>;
83
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
84
+ person: import("@ascendance-hub/sapphire-core").ObjectField<{
85
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
86
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
87
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
88
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
89
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
90
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
91
+ _id: import("@ascendance-hub/sapphire-core").StringField<string, string>;
92
+ name: import("@ascendance-hub/sapphire-core").StringField<string, string>;
93
+ }>>;
94
+ email: import("@ascendance-hub/sapphire-core").StringField<string, string>;
95
+ passwordHash: import("@ascendance-hub/sapphire-core").StringField<string, string>;
96
+ status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
97
+ role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
98
+ restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
99
+ termsAcceptedAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
100
+ lastAccessAt: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
101
+ audit: import("@ascendance-hub/sapphire-core").ObjectField<{
102
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
103
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
104
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
105
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
106
+ }, import("@ascendance-hub/sapphire-core").ObjectOutput<{
107
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
108
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
109
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
110
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
111
+ }>, import("@ascendance-hub/sapphire-core").ObjectInput<{
112
+ createdAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
113
+ updatedAt: import("@ascendance-hub/sapphire-core").StringField<string, string>;
114
+ createdBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
115
+ updatedBy: import("@ascendance-hub/sapphire-core").StringField<string | undefined, string | undefined>;
116
+ }>>;
117
+ }>>;
118
+ //# sourceMappingURL=user-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-schema.d.ts","sourceRoot":"","sources":["../../../../src/core/data/user/user-schema.ts"],"names":[],"mappings":"AAMA,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUrB,CAAA"}