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.
- package/build/clients/auth-client.d.ts +18 -0
- package/build/clients/auth-client.d.ts.map +1 -0
- package/build/clients/auth-client.js +38 -0
- package/build/clients/auth-client.js.map +1 -0
- package/build/clients/financial-account-client.d.ts +6 -0
- package/build/clients/financial-account-client.d.ts.map +1 -0
- package/build/clients/financial-account-client.js +11 -0
- package/build/clients/financial-account-client.js.map +1 -0
- package/build/clients/financial-category-client.d.ts +6 -0
- package/build/clients/financial-category-client.d.ts.map +1 -0
- package/build/clients/financial-category-client.js +11 -0
- package/build/clients/financial-category-client.js.map +1 -0
- package/build/clients/index.d.ts +4 -0
- package/build/clients/index.d.ts.map +1 -1
- package/build/clients/index.js +9 -1
- package/build/clients/index.js.map +1 -1
- package/build/clients/person-client.d.ts +2 -5
- package/build/clients/person-client.d.ts.map +1 -1
- package/build/clients/person-client.js +1 -1
- package/build/clients/person-client.js.map +1 -1
- package/build/clients/restaurant-client.d.ts +6 -0
- package/build/clients/restaurant-client.d.ts.map +1 -0
- package/build/clients/restaurant-client.js +11 -0
- package/build/clients/restaurant-client.js.map +1 -0
- package/build/core/client/master-client.d.ts +5 -1
- package/build/core/client/master-client.d.ts.map +1 -1
- package/build/core/client/master-client.js +4 -0
- package/build/core/client/master-client.js.map +1 -1
- package/build/core/data/auth/auth-response.d.ts +17 -0
- package/build/core/data/auth/auth-response.d.ts.map +1 -0
- package/build/core/data/auth/auth-response.js +3 -0
- package/build/core/data/auth/auth-response.js.map +1 -0
- package/build/core/data/auth/index.d.ts +7 -0
- package/build/core/data/auth/index.d.ts.map +1 -0
- package/build/core/data/auth/index.js +10 -0
- package/build/core/data/auth/index.js.map +1 -0
- package/build/core/data/auth/login-schema.d.ts +17 -0
- package/build/core/data/auth/login-schema.d.ts.map +1 -0
- package/build/core/data/auth/login-schema.js +14 -0
- package/build/core/data/auth/login-schema.js.map +1 -0
- package/build/core/data/auth/password-policy.d.ts +7 -0
- package/build/core/data/auth/password-policy.d.ts.map +1 -0
- package/build/core/data/auth/password-policy.js +14 -0
- package/build/core/data/auth/password-policy.js.map +1 -0
- package/build/core/data/auth/signup-schema.d.ts +199 -0
- package/build/core/data/auth/signup-schema.d.ts.map +1 -0
- package/build/core/data/auth/signup-schema.js +21 -0
- package/build/core/data/auth/signup-schema.js.map +1 -0
- package/build/core/data/common/audit.d.ts +24 -0
- package/build/core/data/common/audit.d.ts.map +1 -0
- package/build/core/data/common/audit.js +17 -0
- package/build/core/data/common/audit.js.map +1 -0
- package/build/core/data/common/index.d.ts +4 -0
- package/build/core/data/common/index.d.ts.map +1 -0
- package/build/core/data/common/index.js +8 -0
- package/build/core/data/common/index.js.map +1 -0
- package/build/core/data/common/status.d.ts +5 -0
- package/build/core/data/common/status.d.ts.map +1 -0
- package/build/core/data/common/status.js +9 -0
- package/build/core/data/common/status.js.map +1 -0
- package/build/core/data/financial/financial-account-entity.d.ts +5 -0
- package/build/core/data/financial/financial-account-entity.d.ts.map +1 -0
- package/build/core/data/financial/financial-account-entity.js +3 -0
- package/build/core/data/financial/financial-account-entity.js.map +1 -0
- package/build/core/data/financial/financial-account-schema.d.ts +81 -0
- package/build/core/data/financial/financial-account-schema.d.ts.map +1 -0
- package/build/core/data/financial/financial-account-schema.js +25 -0
- package/build/core/data/financial/financial-account-schema.js.map +1 -0
- package/build/core/data/financial/financial-category-entity.d.ts +5 -0
- package/build/core/data/financial/financial-category-entity.d.ts.map +1 -0
- package/build/core/data/financial/financial-category-entity.js +3 -0
- package/build/core/data/financial/financial-category-entity.js.map +1 -0
- package/build/core/data/financial/financial-category-schema.d.ts +87 -0
- package/build/core/data/financial/financial-category-schema.d.ts.map +1 -0
- package/build/core/data/financial/financial-category-schema.js +33 -0
- package/build/core/data/financial/financial-category-schema.js.map +1 -0
- package/build/core/data/financial/index.d.ts +5 -0
- package/build/core/data/financial/index.d.ts.map +1 -0
- package/build/core/data/financial/index.js +12 -0
- package/build/core/data/financial/index.js.map +1 -0
- package/build/core/data/index.d.ts +5 -0
- package/build/core/data/index.d.ts.map +1 -1
- package/build/core/data/index.js +5 -0
- package/build/core/data/index.js.map +1 -1
- package/build/core/data/person/index.d.ts +2 -0
- package/build/core/data/person/index.d.ts.map +1 -1
- package/build/core/data/person/index.js +3 -1
- package/build/core/data/person/index.js.map +1 -1
- package/build/core/data/person/person-ref-schema.d.ts +18 -0
- package/build/core/data/person/person-ref-schema.d.ts.map +1 -0
- package/build/core/data/person/person-ref-schema.js +15 -0
- package/build/core/data/person/person-ref-schema.js.map +1 -0
- package/build/core/data/person/person-schema.d.ts +51 -3
- package/build/core/data/person/person-schema.d.ts.map +1 -1
- package/build/core/data/person/person-schema.js +3 -1
- package/build/core/data/person/person-schema.js.map +1 -1
- package/build/core/data/restaurant/index.d.ts +3 -0
- package/build/core/data/restaurant/index.d.ts.map +1 -0
- package/build/core/data/restaurant/index.js +6 -0
- package/build/core/data/restaurant/index.js.map +1 -0
- package/build/core/data/restaurant/restaurant-entity.d.ts +5 -0
- package/build/core/data/restaurant/restaurant-entity.d.ts.map +1 -0
- package/build/core/data/restaurant/restaurant-entity.js +3 -0
- package/build/core/data/restaurant/restaurant-entity.js.map +1 -0
- package/build/core/data/restaurant/restaurant-schema.d.ts +56 -0
- package/build/core/data/restaurant/restaurant-schema.d.ts.map +1 -0
- package/build/core/data/restaurant/restaurant-schema.js +11 -0
- package/build/core/data/restaurant/restaurant-schema.js.map +1 -0
- package/build/core/data/user/index.d.ts +3 -0
- package/build/core/data/user/index.d.ts.map +1 -0
- package/build/core/data/user/index.js +8 -0
- package/build/core/data/user/index.js.map +1 -0
- package/build/core/data/user/user-entity.d.ts +5 -0
- package/build/core/data/user/user-entity.d.ts.map +1 -0
- package/build/core/data/user/user-entity.js +3 -0
- package/build/core/data/user/user-entity.js.map +1 -0
- package/build/core/data/user/user-schema.d.ts +118 -0
- package/build/core/data/user/user-schema.d.ts.map +1 -0
- package/build/core/data/user/user-schema.js +35 -0
- package/build/core/data/user/user-schema.js.map +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userSchema = exports.UserRole = exports.UserStatus = void 0;
|
|
4
|
+
const sapphire_core_1 = require("@ascendance-hub/sapphire-core");
|
|
5
|
+
const person_ref_schema_1 = require("../person/person-ref-schema");
|
|
6
|
+
const audit_1 = require("../common/audit");
|
|
7
|
+
const s = new sapphire_core_1.Sapphire();
|
|
8
|
+
var UserStatus;
|
|
9
|
+
(function (UserStatus) {
|
|
10
|
+
UserStatus["Active"] = "active";
|
|
11
|
+
UserStatus["Inactive"] = "inactive";
|
|
12
|
+
UserStatus["Blocked"] = "blocked";
|
|
13
|
+
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
14
|
+
var UserRole;
|
|
15
|
+
(function (UserRole) {
|
|
16
|
+
UserRole["Owner"] = "owner";
|
|
17
|
+
UserRole["Member"] = "member";
|
|
18
|
+
})(UserRole || (exports.UserRole = UserRole = {}));
|
|
19
|
+
/**
|
|
20
|
+
* Usuário autenticável. O `person` é um Extended Reference ({ _id, name })
|
|
21
|
+
* para o documento em `people`; o e-mail é a credencial e vive aqui (índice
|
|
22
|
+
* único na API).
|
|
23
|
+
*/
|
|
24
|
+
exports.userSchema = s.object({
|
|
25
|
+
person: person_ref_schema_1.personRefSchema,
|
|
26
|
+
email: s.string().email({ message: 'Informe um e-mail válido.' }),
|
|
27
|
+
passwordHash: s.string(),
|
|
28
|
+
status: s.type().enum(UserStatus),
|
|
29
|
+
role: s.type().enum(UserRole),
|
|
30
|
+
restaurantId: s.string(),
|
|
31
|
+
termsAcceptedAt: s.string().optional(),
|
|
32
|
+
lastAccessAt: s.string().optional(),
|
|
33
|
+
audit: audit_1.auditSchema,
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=user-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-schema.js","sourceRoot":"","sources":["../../../../src/core/data/user/user-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,mEAA6D;AAC7D,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,iCAAmB,CAAA;AACrB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,6BAAiB,CAAA;AACnB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED;;;;GAIG;AACU,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,mCAAe;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,KAAK,EAAE,mBAAW;CACnB,CAAC,CAAA"}
|