mintly-lib 2.2.2-preview → 2.3.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.
- package/build/core/data/common/audit.js +2 -2
- package/build/core/data/common/audit.js.map +1 -1
- package/build/core/data/financial/financial-account-schema.js +1 -1
- package/build/core/data/financial/financial-account-schema.js.map +1 -1
- package/build/core/data/financial/index.d.ts +1 -0
- package/build/core/data/financial/index.d.ts.map +1 -1
- package/build/core/data/financial/index.js +3 -1
- package/build/core/data/financial/index.js.map +1 -1
- package/build/core/data/user/user-schema.d.ts +6 -6
- package/build/core/data/user/user-schema.js +2 -2
- package/build/core/data/user/user-schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ const s = new sapphire_core_1.Sapphire();
|
|
|
9
9
|
* é criado antes de existir um "autor" para referenciar.
|
|
10
10
|
*/
|
|
11
11
|
exports.auditSchema = s.object({
|
|
12
|
-
createdAt: s.date(),
|
|
13
|
-
updatedAt: s.date(),
|
|
12
|
+
createdAt: s.date().coerce(),
|
|
13
|
+
updatedAt: s.date().coerce(),
|
|
14
14
|
createdBy: s.string().optional(),
|
|
15
15
|
updatedBy: s.string().optional(),
|
|
16
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/core/data/common/audit.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/core/data/common/audit.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB;;;;GAIG;AACU,QAAA,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAA"}
|
|
@@ -20,7 +20,7 @@ exports.baseAccountSchema = s.object({
|
|
|
20
20
|
availableBalance: s.number().default(0),
|
|
21
21
|
predictedBalance: s.number().default(0),
|
|
22
22
|
history: s.array(s.object({
|
|
23
|
-
at: s.date()
|
|
23
|
+
at: s.date().coerce(),
|
|
24
24
|
by: s.string(),
|
|
25
25
|
action: s.string(),
|
|
26
26
|
detail: s.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-account-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"financial-account-schema.js","sourceRoot":"","sources":["../../../../src/core/data/financial/financial-account-schema.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AACxD,6CAA+C;AAC/C,2CAA6C;AAE7C,MAAM,CAAC,GAAG,IAAI,wBAAQ,EAAE,CAAA;AAExB,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,qBAAY,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;K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,CAAC,qBAAY,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxC,CAAC,CAAC,OAAO,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { FinancialAccount } from './financial-account-entity';
|
|
2
2
|
export { financialAccountSchema, FinancialAccountType } from './financial-account-schema';
|
|
3
|
+
export { financialAccountUpdateSchema } from './financial-account-schema';
|
|
3
4
|
export { FinancialCategory } from './financial-category-entity';
|
|
4
5
|
export { financialCategorySchema, CategoryType, CategoryBehavior, OperationalNature, } from './financial-category-schema';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
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;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAA;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,6BAA6B,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategorySchema = exports.FinancialAccountType = exports.financialAccountSchema = void 0;
|
|
3
|
+
exports.OperationalNature = exports.CategoryBehavior = exports.CategoryType = exports.financialCategorySchema = exports.financialAccountUpdateSchema = exports.FinancialAccountType = exports.financialAccountSchema = void 0;
|
|
4
4
|
var financial_account_schema_1 = require("./financial-account-schema");
|
|
5
5
|
Object.defineProperty(exports, "financialAccountSchema", { enumerable: true, get: function () { return financial_account_schema_1.financialAccountSchema; } });
|
|
6
6
|
Object.defineProperty(exports, "FinancialAccountType", { enumerable: true, get: function () { return financial_account_schema_1.FinancialAccountType; } });
|
|
7
|
+
var financial_account_schema_2 = require("./financial-account-schema");
|
|
8
|
+
Object.defineProperty(exports, "financialAccountUpdateSchema", { enumerable: true, get: function () { return financial_account_schema_2.financialAccountUpdateSchema; } });
|
|
7
9
|
var financial_category_schema_1 = require("./financial-category-schema");
|
|
8
10
|
Object.defineProperty(exports, "financialCategorySchema", { enumerable: true, get: function () { return financial_category_schema_1.financialCategorySchema; } });
|
|
9
11
|
Object.defineProperty(exports, "CategoryType", { enumerable: true, get: function () { return financial_category_schema_1.CategoryType; } });
|
|
@@ -1 +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;
|
|
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;AACrD,uEAAyE;AAAhE,wIAAA,4BAA4B,OAAA;AAGrC,yEAKoC;AAJlC,oIAAA,uBAAuB,OAAA;AACvB,yHAAA,YAAY,OAAA;AACZ,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA"}
|
|
@@ -28,8 +28,8 @@ export declare const userSchema: import("@ascendance-hub/sapphire-core").ObjectF
|
|
|
28
28
|
status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
|
|
29
29
|
role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
|
|
30
30
|
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
31
|
-
termsAcceptedAt: import("@ascendance-hub/sapphire-core").
|
|
32
|
-
lastAccessAt: import("@ascendance-hub/sapphire-core").
|
|
31
|
+
termsAcceptedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
32
|
+
lastAccessAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
33
33
|
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
34
34
|
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
35
35
|
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
@@ -62,8 +62,8 @@ export declare const userSchema: import("@ascendance-hub/sapphire-core").ObjectF
|
|
|
62
62
|
status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
|
|
63
63
|
role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
|
|
64
64
|
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
65
|
-
termsAcceptedAt: import("@ascendance-hub/sapphire-core").
|
|
66
|
-
lastAccessAt: import("@ascendance-hub/sapphire-core").
|
|
65
|
+
termsAcceptedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
66
|
+
lastAccessAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
67
67
|
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
68
68
|
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
69
69
|
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
@@ -96,8 +96,8 @@ export declare const userSchema: import("@ascendance-hub/sapphire-core").ObjectF
|
|
|
96
96
|
status: import("@ascendance-hub/sapphire-core").EnumField<UserStatus, UserStatus, UserStatus>;
|
|
97
97
|
role: import("@ascendance-hub/sapphire-core").EnumField<UserRole, UserRole, UserRole>;
|
|
98
98
|
restaurantId: import("@ascendance-hub/sapphire-core").StringField<string, string>;
|
|
99
|
-
termsAcceptedAt: import("@ascendance-hub/sapphire-core").
|
|
100
|
-
lastAccessAt: import("@ascendance-hub/sapphire-core").
|
|
99
|
+
termsAcceptedAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
100
|
+
lastAccessAt: import("@ascendance-hub/sapphire-core").DateField<Date | undefined, Date | undefined>;
|
|
101
101
|
audit: import("@ascendance-hub/sapphire-core").ObjectField<{
|
|
102
102
|
createdAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
103
103
|
updatedAt: import("@ascendance-hub/sapphire-core").DateField<Date, Date>;
|
|
@@ -28,8 +28,8 @@ exports.userSchema = s.object({
|
|
|
28
28
|
status: s.type().enum(UserStatus),
|
|
29
29
|
role: s.type().enum(UserRole),
|
|
30
30
|
restaurantId: s.string(),
|
|
31
|
-
termsAcceptedAt: s.
|
|
32
|
-
lastAccessAt: s.
|
|
31
|
+
termsAcceptedAt: s.date().coerce().optional(),
|
|
32
|
+
lastAccessAt: s.date().coerce().optional(),
|
|
33
33
|
audit: audit_1.auditSchema,
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=user-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-schema.js","sourceRoot":"","sources":["../../../../src/core/data/user/user-schema.ts"],"names":[],"mapp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