@placeshakr/config 10.19.37 → 10.19.41-alpha.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/LICENSE +1 -1
- package/dist/config.cjs.development.js +59 -56
- 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 +61 -60
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/types.d.ts +1 -0
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -9
- package/src/environment/base.ts +1 -0
- package/src/environment/types.ts +1 -0
- package/src/types.ts +2 -2
package/dist/config.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ROLE;
|
|
1
|
+
var ROLE$1;
|
|
2
2
|
(function (ROLE) {
|
|
3
3
|
ROLE["CLIENT"] = "client";
|
|
4
4
|
ROLE["SELLER"] = "seller";
|
|
@@ -7,12 +7,12 @@ var ROLE;
|
|
|
7
7
|
ROLE["ADMIN"] = "admin";
|
|
8
8
|
ROLE["OWNER"] = "owner";
|
|
9
9
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
10
|
-
})(ROLE || (ROLE = {}));
|
|
10
|
+
})(ROLE$1 || (ROLE$1 = {}));
|
|
11
11
|
/**
|
|
12
12
|
* security context
|
|
13
13
|
*/
|
|
14
|
-
var index = (function (env) {
|
|
15
|
-
var orderedAccess = [ROLE.CLIENT, ROLE.PRO, ROLE.AGENT, ROLE.ADMIN, ROLE.SUPERADMIN];
|
|
14
|
+
var index$1 = (function (env) {
|
|
15
|
+
var orderedAccess = [ROLE$1.CLIENT, ROLE$1.PRO, ROLE$1.AGENT, ROLE$1.ADMIN, ROLE$1.SUPERADMIN];
|
|
16
16
|
var hasRole = function hasRole(claims) {
|
|
17
17
|
return !claims || !claims[env.security.claims.role] ? false : true;
|
|
18
18
|
};
|
|
@@ -172,7 +172,8 @@ var productionEnvironment = {
|
|
|
172
172
|
enterpriseMedias: 'enterprises/{enterpriseId}/medias',
|
|
173
173
|
configurations: 'enterprises/{enterpriseId}/configurations',
|
|
174
174
|
logs: 'enterprises/{enterpriseId}/logs',
|
|
175
|
-
systemVersions: 'systemVersions'
|
|
175
|
+
systemVersions: 'systemVersions',
|
|
176
|
+
userProfiles: 'users/{userId}/profiles'
|
|
176
177
|
},
|
|
177
178
|
docs: {
|
|
178
179
|
user: 'users/{userId}',
|
|
@@ -1246,12 +1247,12 @@ var production = {
|
|
|
1246
1247
|
*
|
|
1247
1248
|
* @param envName
|
|
1248
1249
|
*/
|
|
1249
|
-
var index
|
|
1250
|
+
var index = (function (envName) {
|
|
1250
1251
|
if (envName === 'production') return createProducts(production);
|
|
1251
1252
|
return createProducts(testing);
|
|
1252
1253
|
});
|
|
1253
1254
|
|
|
1254
|
-
var ROLE
|
|
1255
|
+
var ROLE;
|
|
1255
1256
|
(function (ROLE) {
|
|
1256
1257
|
ROLE["CLIENT"] = "client";
|
|
1257
1258
|
ROLE["SELLER"] = "seller";
|
|
@@ -1260,7 +1261,7 @@ var ROLE$1;
|
|
|
1260
1261
|
ROLE["ADMIN"] = "admin";
|
|
1261
1262
|
ROLE["OWNER"] = "owner";
|
|
1262
1263
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
1263
|
-
})(ROLE
|
|
1264
|
+
})(ROLE || (ROLE = {}));
|
|
1264
1265
|
var VisitReportStatus;
|
|
1265
1266
|
(function (VisitReportStatus) {
|
|
1266
1267
|
VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
@@ -1834,74 +1835,74 @@ var BillIssuedReasons;
|
|
|
1834
1835
|
|
|
1835
1836
|
var types = {
|
|
1836
1837
|
__proto__: null,
|
|
1837
|
-
get
|
|
1838
|
-
get
|
|
1838
|
+
get BarCodeEnum () { return BarCodeEnum; },
|
|
1839
|
+
get BillDiscountType () { return BillDiscountType; },
|
|
1840
|
+
get BillDocTypeEnum () { return BillDocTypeEnum; },
|
|
1841
|
+
get BillElementType () { return BillElementType; },
|
|
1842
|
+
get BillIssuedEntity () { return BillIssuedEntity; },
|
|
1843
|
+
get BillIssuedReasons () { return BillIssuedReasons; },
|
|
1844
|
+
get BillIssuedStatus () { return BillIssuedStatus; },
|
|
1845
|
+
get BillIssuedType () { return BillIssuedType; },
|
|
1846
|
+
get BillReceivedEntity () { return BillReceivedEntity; },
|
|
1847
|
+
get BillReceivedStatus () { return BillReceivedStatus; },
|
|
1848
|
+
get BillReceivedType () { return BillReceivedType; },
|
|
1849
|
+
get BillType () { return BillType; },
|
|
1850
|
+
get CategoryEntityEnum () { return CategoryEntityEnum; },
|
|
1851
|
+
get CommercialStatusEnum () { return CommercialStatusEnum; },
|
|
1852
|
+
get ConfigurationFieldType () { return ConfigurationFieldType; },
|
|
1853
|
+
get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
|
|
1839
1854
|
get DevisCommissionsEntity () { return DevisCommissionsEntity; },
|
|
1840
|
-
get
|
|
1841
|
-
get DevisDocSectionEnum () { return DevisDocSectionEnum; },
|
|
1855
|
+
get DevisContractingEntity () { return DevisContractingEntity; },
|
|
1842
1856
|
get DevisDocColorEnum () { return DevisDocColorEnum; },
|
|
1843
1857
|
get DevisDocDurationEnum () { return DevisDocDurationEnum; },
|
|
1844
|
-
get
|
|
1845
|
-
get
|
|
1846
|
-
get
|
|
1847
|
-
get
|
|
1848
|
-
get
|
|
1858
|
+
get DevisDocSectionEnum () { return DevisDocSectionEnum; },
|
|
1859
|
+
get DevisFormatEnum () { return DevisFormatEnum; },
|
|
1860
|
+
get DevisHistoryType () { return DevisHistoryType; },
|
|
1861
|
+
get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
|
|
1862
|
+
get DevisPdfType () { return DevisPdfType; },
|
|
1849
1863
|
get DevisStatusEnum () { return DevisStatusEnum; },
|
|
1864
|
+
get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
|
|
1850
1865
|
get DevisTypeEnum () { return DevisTypeEnum; },
|
|
1851
1866
|
get DevisViewMode () { return DevisViewMode; },
|
|
1852
|
-
get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
|
|
1853
1867
|
get DocumentsTypeEnum () { return DocumentsTypeEnum; },
|
|
1854
|
-
get EventsTypeEnum () { return EventsTypeEnum; },
|
|
1855
|
-
get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
|
|
1856
|
-
get BillDocTypeEnum () { return BillDocTypeEnum; },
|
|
1857
|
-
get BillIssuedStatus () { return BillIssuedStatus; },
|
|
1858
|
-
get BillReceivedStatus () { return BillReceivedStatus; },
|
|
1859
|
-
get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
|
|
1860
|
-
get BillType () { return BillType; },
|
|
1861
|
-
get BillReceivedEntity () { return BillReceivedEntity; },
|
|
1862
|
-
get BillReceivedType () { return BillReceivedType; },
|
|
1863
|
-
get BillIssuedEntity () { return BillIssuedEntity; },
|
|
1864
|
-
get BillIssuedType () { return BillIssuedType; },
|
|
1865
|
-
get BillElementType () { return BillElementType; },
|
|
1866
|
-
get BillDiscountType () { return BillDiscountType; },
|
|
1867
|
-
get PaymentType () { return PaymentType; },
|
|
1868
|
-
get ProjectTypeEnum () { return ProjectTypeEnum; },
|
|
1869
|
-
get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
|
|
1870
|
-
get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
|
|
1871
|
-
get ProSkillsEnum () { return ProSkillsEnum; },
|
|
1872
|
-
get CommercialStatusEnum () { return CommercialStatusEnum; },
|
|
1873
|
-
get Origin () { return Origin; },
|
|
1874
|
-
get OrderMaterialStatus () { return OrderMaterialStatus; },
|
|
1875
|
-
get PhonesEnum () { return PhonesEnum; },
|
|
1876
|
-
get SendgridTemplates () { return SendgridTemplates; },
|
|
1877
|
-
get TermsOfPayment () { return TermsOfPayment; },
|
|
1878
|
-
get PaymentChoice () { return PaymentChoice; },
|
|
1879
|
-
get LateInterest () { return LateInterest; },
|
|
1880
|
-
get ProfileStatus () { return ProfileStatus; },
|
|
1881
|
-
get EstimationOriginEnum () { return EstimationOriginEnum; },
|
|
1882
|
-
get EstimationTypeEnum () { return EstimationTypeEnum; },
|
|
1883
1868
|
get EmailTemplate () { return EmailTemplate; },
|
|
1884
|
-
get DevisPdfType () { return DevisPdfType; },
|
|
1885
|
-
get DevisContractingEntity () { return DevisContractingEntity; },
|
|
1886
|
-
get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
|
|
1887
1869
|
get EnterpriseProductEnum () { return EnterpriseProductEnum; },
|
|
1870
|
+
get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
|
|
1871
|
+
get EstimationOriginEnum () { return EstimationOriginEnum; },
|
|
1888
1872
|
get EstimationStatusEnum () { return EstimationStatusEnum; },
|
|
1873
|
+
get EstimationTypeEnum () { return EstimationTypeEnum; },
|
|
1874
|
+
get EventsTypeEnum () { return EventsTypeEnum; },
|
|
1889
1875
|
get HistoryActionEnum () { return HistoryActionEnum; },
|
|
1890
1876
|
get HistoryEntityType () { return HistoryEntityType; },
|
|
1891
|
-
get
|
|
1892
|
-
get
|
|
1877
|
+
get ItemResponsible () { return ItemResponsible; },
|
|
1878
|
+
get LateInterest () { return LateInterest; },
|
|
1879
|
+
get LogsIdentifier () { return LogsIdentifier; },
|
|
1880
|
+
get MaterialsProviderType () { return MaterialsProviderType; },
|
|
1893
1881
|
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
1894
|
-
get
|
|
1882
|
+
get NotesType () { return NotesType; },
|
|
1883
|
+
get NotificationType () { return NotificationType; },
|
|
1895
1884
|
get OperationQuantityEnum () { return OperationQuantityEnum; },
|
|
1896
1885
|
get OperationRulesEnum () { return OperationRulesEnum; },
|
|
1897
|
-
get
|
|
1886
|
+
get OperationStatusEnum () { return OperationStatusEnum; },
|
|
1887
|
+
get OrderMaterialStatus () { return OrderMaterialStatus; },
|
|
1888
|
+
get Origin () { return Origin; },
|
|
1889
|
+
get PaymentChoice () { return PaymentChoice; },
|
|
1890
|
+
get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
|
|
1891
|
+
get PaymentType () { return PaymentType; },
|
|
1892
|
+
get PhonesEnum () { return PhonesEnum; },
|
|
1893
|
+
get ProSkillsEnum () { return ProSkillsEnum; },
|
|
1894
|
+
get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
|
|
1895
|
+
get ProfileStatus () { return ProfileStatus; },
|
|
1896
|
+
get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
|
|
1898
1897
|
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
|
|
1899
|
-
get
|
|
1900
|
-
get
|
|
1901
|
-
get ConfigurationFieldType () { return ConfigurationFieldType; },
|
|
1902
|
-
get LogsIdentifier () { return LogsIdentifier; },
|
|
1898
|
+
get ProjectType () { return ProjectType; },
|
|
1899
|
+
get ProjectTypeEnum () { return ProjectTypeEnum; },
|
|
1903
1900
|
get QueryIdentifier () { return QueryIdentifier; },
|
|
1904
|
-
get
|
|
1901
|
+
get ROLE () { return ROLE; },
|
|
1902
|
+
get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
|
|
1903
|
+
get SendgridTemplates () { return SendgridTemplates; },
|
|
1904
|
+
get TermsOfPayment () { return TermsOfPayment; },
|
|
1905
|
+
get VisitReportStatus () { return VisitReportStatus; }
|
|
1905
1906
|
};
|
|
1906
1907
|
|
|
1907
1908
|
function isBuffer(obj) {
|
|
@@ -1943,5 +1944,5 @@ var createEvent = function createEvent(type, data, meta) {
|
|
|
1943
1944
|
};
|
|
1944
1945
|
};
|
|
1945
1946
|
|
|
1946
|
-
export { Environments, ROLE, acls, types as articho, createEvent, flatten, getEnv, index
|
|
1947
|
+
export { Environments, ROLE$1 as ROLE, acls, types as articho, createEvent, flatten, getEnv, index as getPlatformConfiguration, helpers, getPath as path, reversePathName, index$1 as security, uid };
|
|
1947
1948
|
//# sourceMappingURL=config.esm.js.map
|