@placeshakr/config 10.19.0-alpha.1 → 10.19.0-alpha.16
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/CHANGELOG.md +84 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/policy.d.ts.map +1 -1
- package/dist/config.cjs.development.js +27 -14
- package/dist/config.cjs.development.js.map +1 -1
- package/dist/config.cjs.production.min.js +1 -1
- package/dist/config.cjs.production.min.js.map +1 -1
- package/dist/config.esm.js +27 -14
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/decorators.d.ts.map +1 -1
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/uid.d.ts.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/metrics.d.ts.map +1 -1
- package/dist/path/index.d.ts.map +1 -1
- package/dist/plans/base.d.ts.map +1 -1
- package/dist/plans/index.d.ts.map +1 -1
- package/dist/plans/types.d.ts.map +1 -1
- package/dist/types.d.ts +28 -18
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/flatten.d.ts.map +1 -1
- package/package.json +9 -21
- package/src/environment/base.ts +2 -2
- package/src/environment/decorators.ts +1 -1
- package/src/environment/types.ts +1 -1
- package/src/helpers/uid.ts +1 -1
- package/src/index.ts +8 -8
- package/src/plans/base.ts +2 -2
- package/src/plans/index.ts +3 -3
- package/src/types.ts +315 -305
package/CHANGELOG.md
CHANGED
|
@@ -3,13 +3,97 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [10.19.0-alpha.16](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.14...v10.19.0-alpha.16) (2021-12-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [10.19.0-alpha.14](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.12...v10.19.0-alpha.14) (2021-12-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [10.19.0-alpha.11](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.10...v10.19.0-alpha.11) (2021-12-20)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [10.19.0-alpha.10](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.9...v10.19.0-alpha.10) (2021-12-18)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [10.19.0-alpha.8](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.7...v10.19.0-alpha.8) (2021-12-13)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [10.19.0-alpha.7](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.6...v10.19.0-alpha.7) (2021-12-09)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [10.19.0-alpha.6](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.5...v10.19.0-alpha.6) (2021-12-07)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [10.19.0-alpha.5](https://github.com/placeshaker/articho/compare/v10.18.2...v10.19.0-alpha.5) (2021-12-06)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* add documents feature translation ([#1718](https://github.com/placeshaker/articho/issues/1718)) ([fa6f38c](https://github.com/placeshaker/articho/commit/fa6f38cc23b3b7b525ef9ff8d0f1a027313cd3a4)), closes [#1692](https://github.com/placeshaker/articho/issues/1692) [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1701](https://github.com/placeshaker/articho/issues/1701) [#1703](https://github.com/placeshaker/articho/issues/1703) [#1705](https://github.com/placeshaker/articho/issues/1705) [#1706](https://github.com/placeshaker/articho/issues/1706) [#1687](https://github.com/placeshaker/articho/issues/1687) [#1720](https://github.com/placeshaker/articho/issues/1720)
|
|
68
|
+
* medias translation ([#1719](https://github.com/placeshaker/articho/issues/1719)) ([ba3d777](https://github.com/placeshaker/articho/commit/ba3d777e438fb4f65e251a9f5d4a252bd1b70104)), closes [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1703](https://github.com/placeshaker/articho/issues/1703)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Features
|
|
72
|
+
|
|
73
|
+
* medias translation ([#1719](https://github.com/placeshaker/articho/issues/1719)) ([8129d51](https://github.com/placeshaker/articho/commit/8129d5182da3e6c5bdd55b21daf43729dfdc332d)), closes [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1703](https://github.com/placeshaker/articho/issues/1703)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# [10.19.0-alpha.4](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.3...v10.19.0-alpha.4) (2021-11-17)
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
- add documents feature translation ([#1718](https://github.com/placeshaker/articho/issues/1718)) ([ca68f9d](https://github.com/placeshaker/articho/commit/ca68f9de74d03ff22cadcdc4fc92ab1a91170c04)), closes [#1692](https://github.com/placeshaker/articho/issues/1692) [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1701](https://github.com/placeshaker/articho/issues/1701) [#1703](https://github.com/placeshaker/articho/issues/1703) [#1705](https://github.com/placeshaker/articho/issues/1705) [#1706](https://github.com/placeshaker/articho/issues/1706) [#1687](https://github.com/placeshaker/articho/issues/1687) [#1687](https://github.com/placeshaker/articho/issues/1687) [#1720](https://github.com/placeshaker/articho/issues/1720)
|
|
81
|
+
|
|
82
|
+
# [10.19.0-alpha.0](https://github.com/placeshaker/articho/compare/v10.18.0...v10.19.0-alpha.0) (2021-11-16)
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
- add documents feature translation ([#1718](https://github.com/placeshaker/articho/issues/1718)) ([ca68f9d](https://github.com/placeshaker/articho/commit/ca68f9de74d03ff22cadcdc4fc92ab1a91170c04)), closes [#1692](https://github.com/placeshaker/articho/issues/1692) [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1701](https://github.com/placeshaker/articho/issues/1701) [#1703](https://github.com/placeshaker/articho/issues/1703) [#1705](https://github.com/placeshaker/articho/issues/1705) [#1706](https://github.com/placeshaker/articho/issues/1706) [#1687](https://github.com/placeshaker/articho/issues/1687) [#1687](https://github.com/placeshaker/articho/issues/1687) [#1720](https://github.com/placeshaker/articho/issues/1720)
|
|
87
|
+
|
|
6
88
|
# [10.19.0-alpha.1](https://github.com/placeshaker/articho/compare/v10.19.0-alpha.0...v10.19.0-alpha.1) (2021-11-16)
|
|
7
89
|
|
|
90
|
+
## [10.17.2-alpha.0](https://github.com/placeshaker/articho/compare/v10.17.1...v10.17.2-alpha.0) (2021-11-02)
|
|
8
91
|
|
|
9
92
|
### Features
|
|
10
93
|
|
|
11
94
|
* medias translation ([#1719](https://github.com/placeshaker/articho/issues/1719)) ([8129d51](https://github.com/placeshaker/articho/commit/8129d5182da3e6c5bdd55b21daf43729dfdc332d)), closes [#1699](https://github.com/placeshaker/articho/issues/1699) [#1700](https://github.com/placeshaker/articho/issues/1700) [#1703](https://github.com/placeshaker/articho/issues/1703)
|
|
12
95
|
|
|
96
|
+
**Note:** Version bump only for package @placeshakr/config
|
|
13
97
|
|
|
14
98
|
|
|
15
99
|
|
package/dist/auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,oBAAY,IAAI;IACd,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B;AAED,oBAAY,eAAe,GAAG;IAC5B,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;IAC/C,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;CAC1C,CAAC;8BAKmB,WAAW,KAAG,eAAe;AAHlD;;GAEG;AACH,wBAiDE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/auth/policy.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GACd,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,uBAAuB,GAGvB,oBAAoB,GACpB,sBAAsB,GACtB,uBAAuB,GACvB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,yBAAyB,GACzB,yBAAyB,GAGzB,kBAAkB,GAClB,qBAAqB,GACrB,yBAAyB,GACzB,gCAAgC,GAChC,qBAAqB,GACrB,oBAAoB,GAGpB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GAGtB,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GAGrB,uBAAuB,GACvB,yBAAyB,GACzB,uBAAuB,GACvB,yBAAyB,GAGzB,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GAGtB,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,aAAK,WAAW,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,4BAA4B,CAAC;AAEjC;;GAEG;AACH,aAAK,mBAAmB,GACpB,oBAAoB,GAGpB,2BAA2B,GAC3B,6BAA6B,GAC7B,2BAA2B,GAC3B,6BAA6B,GAG7B,6BAA6B,GAC7B,6BAA6B,GAC7B,+BAA+B,GAC/B,+BAA+B,GAG/B,sCAAsC,GACtC,sCAAsC,GACtC,wCAAwC,GACxC,wCAAwC,GAGxC,6BAA6B,GAC7B,6BAA6B,GAC7B,+BAA+B,GAC/B,+BAA+B,GAG/B,8BAA8B,GAC9B,8BAA8B,GAC9B,gCAAgC,GAChC,gCAAgC,GAGhC,mCAAmC,GACnC,mCAAmC,GACnC,qCAAqC,GACrC,qCAAqC,GAGrC,yBAAyB,GAGzB,wBAAwB,GACxB,0BAA0B,GAC1B,0BAA0B,GAC1B,wBAAwB,GAGxB,0BAA0B,GAC1B,4BAA4B,GAC5B,4BAA4B,GAC5B,0BAA0B,GAG1B,0BAA0B,GAC1B,4BAA4B,GAC5B,4BAA4B,GAC5B,0BAA0B,GAG1B,+BAA+B,GAC/B,iCAAiC,GACjC,iCAAiC,GACjC,+BAA+B,GAC/B,6CAA6C,GAC7C,gDAAgD,GAChD,+CAA+C,CAAC;AAEpD,oBAAY,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,mBAAmB,CAAC;AAEvE,eAAO,MAAM,IAAI,EAAE,MAAM,EAwIxB,CAAC"}
|
|
@@ -703,9 +703,9 @@ var getEnv = function getEnv(envName) {
|
|
|
703
703
|
var FactoryCreateFunction = function FactoryCreateFunction() {
|
|
704
704
|
return {
|
|
705
705
|
create: function create(id, data) {
|
|
706
|
-
return _extends({},
|
|
706
|
+
return _extends({}, data != null && data.createdAt || data != null && data.updatedAt ? {} : {
|
|
707
707
|
createdAt: Date.now()
|
|
708
|
-
},
|
|
708
|
+
}, data != null && data.updatedAt ? {} : {
|
|
709
709
|
updatedAt: Date.now()
|
|
710
710
|
}, {
|
|
711
711
|
objectID: id,
|
|
@@ -800,13 +800,13 @@ var uid = {
|
|
|
800
800
|
// last push, use the same random number,
|
|
801
801
|
// except incremented by 1.
|
|
802
802
|
else {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
lastRandChars[i]++;
|
|
803
|
+
for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
|
|
804
|
+
lastRandChars[i] = 0;
|
|
808
805
|
}
|
|
809
806
|
|
|
807
|
+
lastRandChars[i]++;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
810
|
for (i = 0; i < 12; i++) {
|
|
811
811
|
id += ASCII_CHARS.charAt(lastRandChars[i]);
|
|
812
812
|
}
|
|
@@ -823,7 +823,7 @@ var uid = {
|
|
|
823
823
|
timestamp: /*#__PURE__*/function () {
|
|
824
824
|
return function (id, asDate) {
|
|
825
825
|
var time = 0;
|
|
826
|
-
var data = id.
|
|
826
|
+
var data = id.substring(0, 8);
|
|
827
827
|
|
|
828
828
|
for (var i = 0; i < 8; i++) {
|
|
829
829
|
time = time * 62 + ASCII_CHARS.indexOf(data[i]);
|
|
@@ -898,7 +898,7 @@ var createProducts = function createProducts(params) {
|
|
|
898
898
|
price: 6900,
|
|
899
899
|
active: true,
|
|
900
900
|
description: 'Pour les entreprises unipersonnelles',
|
|
901
|
-
id: params.
|
|
901
|
+
id: params.standard.id,
|
|
902
902
|
name: 'Standard',
|
|
903
903
|
type: 'service',
|
|
904
904
|
main: true,
|
|
@@ -965,7 +965,7 @@ var createProducts = function createProducts(params) {
|
|
|
965
965
|
},
|
|
966
966
|
plans: [params.premium.prices.monthly]
|
|
967
967
|
},
|
|
968
|
-
additionalUser: params.
|
|
968
|
+
additionalUser: params.premium.prices.additionalUser,
|
|
969
969
|
additionalUserPrice: params.premium.additionalUserPrice
|
|
970
970
|
}
|
|
971
971
|
};
|
|
@@ -977,8 +977,8 @@ var testing = {
|
|
|
977
977
|
id: 'prod_HzWVSbBrLFn02Y',
|
|
978
978
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
979
979
|
prices: {
|
|
980
|
-
monthly: '
|
|
981
|
-
additionalUser: '
|
|
980
|
+
monthly: 'price_1K8jN1LFzcsAA7x6xqjVew3I',
|
|
981
|
+
additionalUser: 'price_1K8jUaLFzcsAA7x6MxyYqLp9'
|
|
982
982
|
},
|
|
983
983
|
additionalUserPrice: 1000
|
|
984
984
|
},
|
|
@@ -987,7 +987,7 @@ var testing = {
|
|
|
987
987
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
988
988
|
prices: {
|
|
989
989
|
monthly: 'price_1HPXVBLFzcsAA7x61LF40zVU',
|
|
990
|
-
additionalUser: '
|
|
990
|
+
additionalUser: 'price_1K8jXqLFzcsAA7x6QHH6evdh'
|
|
991
991
|
},
|
|
992
992
|
additionalUserPrice: 1000
|
|
993
993
|
},
|
|
@@ -1454,6 +1454,7 @@ var EmailTemplate;
|
|
|
1454
1454
|
EmailTemplate["NEW_ENTERPRISE"] = "new-enterprise";
|
|
1455
1455
|
EmailTemplate["USER_CONTACT"] = "user-contact";
|
|
1456
1456
|
EmailTemplate["PLAN"] = "plan";
|
|
1457
|
+
EmailTemplate["BILL"] = "bill";
|
|
1457
1458
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
1458
1459
|
|
|
1459
1460
|
var DevisPdfType;
|
|
@@ -1535,6 +1536,9 @@ var NomenclaturesIdentifier;
|
|
|
1535
1536
|
NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
|
|
1536
1537
|
NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
|
|
1537
1538
|
NomenclaturesIdentifier["OPERATIONS_LOT"] = "OPERATIONS_LOT";
|
|
1539
|
+
NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
|
|
1540
|
+
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1541
|
+
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1538
1542
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1539
1543
|
|
|
1540
1544
|
var OperationQuantityEnum;
|
|
@@ -1565,6 +1569,14 @@ var MaterialResponsible;
|
|
|
1565
1569
|
MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
|
|
1566
1570
|
})(MaterialResponsible || (MaterialResponsible = {}));
|
|
1567
1571
|
|
|
1572
|
+
var ProjectPriceTypeEnum;
|
|
1573
|
+
|
|
1574
|
+
(function (ProjectPriceTypeEnum) {
|
|
1575
|
+
ProjectPriceTypeEnum["accepted"] = "accepted";
|
|
1576
|
+
ProjectPriceTypeEnum["prospected"] = "prospected";
|
|
1577
|
+
ProjectPriceTypeEnum["rejected"] = "rejected";
|
|
1578
|
+
})(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
|
|
1579
|
+
|
|
1568
1580
|
var types = {
|
|
1569
1581
|
__proto__: null,
|
|
1570
1582
|
get ROLE () { return ROLE; },
|
|
@@ -1617,7 +1629,8 @@ var types = {
|
|
|
1617
1629
|
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
1618
1630
|
get OperationQuantityEnum () { return OperationQuantityEnum; },
|
|
1619
1631
|
get OperationRulesEnum () { return OperationRulesEnum; },
|
|
1620
|
-
get MaterialResponsible () { return MaterialResponsible; }
|
|
1632
|
+
get MaterialResponsible () { return MaterialResponsible; },
|
|
1633
|
+
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; }
|
|
1621
1634
|
};
|
|
1622
1635
|
|
|
1623
1636
|
function isBuffer(obj) {
|