@placeshakr/config 10.19.37 → 10.20.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.
@@ -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}',
@@ -1027,7 +1028,6 @@ var createProducts = function createProducts(params) {
1027
1028
  // tariffs: params.test_4.tariffs,
1028
1029
  // },
1029
1030
  };
1030
-
1031
1031
  return products;
1032
1032
  };
1033
1033
 
@@ -1085,7 +1085,6 @@ var testing = {
1085
1085
  // },
1086
1086
  // additionalUserPrice: 10,
1087
1087
  },
1088
-
1089
1088
  plus: {
1090
1089
  id: 'prod_KzmyY1ysEOeK93',
1091
1090
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1139,7 +1138,6 @@ var testing = {
1139
1138
  // },
1140
1139
  // },
1141
1140
  };
1142
-
1143
1141
  var production = {
1144
1142
  classic: {
1145
1143
  id: 'prod_KzmYFhrWXrzWdR',
@@ -1246,12 +1244,12 @@ var production = {
1246
1244
  *
1247
1245
  * @param envName
1248
1246
  */
1249
- var index$1 = (function (envName) {
1247
+ var index = (function (envName) {
1250
1248
  if (envName === 'production') return createProducts(production);
1251
1249
  return createProducts(testing);
1252
1250
  });
1253
1251
 
1254
- var ROLE$1;
1252
+ var ROLE;
1255
1253
  (function (ROLE) {
1256
1254
  ROLE["CLIENT"] = "client";
1257
1255
  ROLE["SELLER"] = "seller";
@@ -1260,7 +1258,7 @@ var ROLE$1;
1260
1258
  ROLE["ADMIN"] = "admin";
1261
1259
  ROLE["OWNER"] = "owner";
1262
1260
  ROLE["SUPERADMIN"] = "superadmin";
1263
- })(ROLE$1 || (ROLE$1 = {}));
1261
+ })(ROLE || (ROLE = {}));
1264
1262
  var VisitReportStatus;
1265
1263
  (function (VisitReportStatus) {
1266
1264
  VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
@@ -1834,74 +1832,74 @@ var BillIssuedReasons;
1834
1832
 
1835
1833
  var types = {
1836
1834
  __proto__: null,
1837
- get ROLE () { return ROLE$1; },
1838
- get VisitReportStatus () { return VisitReportStatus; },
1835
+ get BarCodeEnum () { return BarCodeEnum; },
1836
+ get BillDiscountType () { return BillDiscountType; },
1837
+ get BillDocTypeEnum () { return BillDocTypeEnum; },
1838
+ get BillElementType () { return BillElementType; },
1839
+ get BillIssuedEntity () { return BillIssuedEntity; },
1840
+ get BillIssuedReasons () { return BillIssuedReasons; },
1841
+ get BillIssuedStatus () { return BillIssuedStatus; },
1842
+ get BillIssuedType () { return BillIssuedType; },
1843
+ get BillReceivedEntity () { return BillReceivedEntity; },
1844
+ get BillReceivedStatus () { return BillReceivedStatus; },
1845
+ get BillReceivedType () { return BillReceivedType; },
1846
+ get BillType () { return BillType; },
1847
+ get CategoryEntityEnum () { return CategoryEntityEnum; },
1848
+ get CommercialStatusEnum () { return CommercialStatusEnum; },
1849
+ get ConfigurationFieldType () { return ConfigurationFieldType; },
1850
+ get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1839
1851
  get DevisCommissionsEntity () { return DevisCommissionsEntity; },
1840
- get DevisHistoryType () { return DevisHistoryType; },
1841
- get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1852
+ get DevisContractingEntity () { return DevisContractingEntity; },
1842
1853
  get DevisDocColorEnum () { return DevisDocColorEnum; },
1843
1854
  get DevisDocDurationEnum () { return DevisDocDurationEnum; },
1844
- get MaterialsProviderType () { return MaterialsProviderType; },
1845
- get ProjectType () { return ProjectType; },
1846
- get OperationStatusEnum () { return OperationStatusEnum; },
1847
- get NotesType () { return NotesType; },
1848
- get NotificationType () { return NotificationType; },
1855
+ get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1856
+ get DevisFormatEnum () { return DevisFormatEnum; },
1857
+ get DevisHistoryType () { return DevisHistoryType; },
1858
+ get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1859
+ get DevisPdfType () { return DevisPdfType; },
1849
1860
  get DevisStatusEnum () { return DevisStatusEnum; },
1861
+ get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1850
1862
  get DevisTypeEnum () { return DevisTypeEnum; },
1851
1863
  get DevisViewMode () { return DevisViewMode; },
1852
- get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1853
1864
  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
1865
  get EmailTemplate () { return EmailTemplate; },
1884
- get DevisPdfType () { return DevisPdfType; },
1885
- get DevisContractingEntity () { return DevisContractingEntity; },
1886
- get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1887
1866
  get EnterpriseProductEnum () { return EnterpriseProductEnum; },
1867
+ get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1868
+ get EstimationOriginEnum () { return EstimationOriginEnum; },
1888
1869
  get EstimationStatusEnum () { return EstimationStatusEnum; },
1870
+ get EstimationTypeEnum () { return EstimationTypeEnum; },
1871
+ get EventsTypeEnum () { return EventsTypeEnum; },
1889
1872
  get HistoryActionEnum () { return HistoryActionEnum; },
1890
1873
  get HistoryEntityType () { return HistoryEntityType; },
1891
- get CategoryEntityEnum () { return CategoryEntityEnum; },
1892
- get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1874
+ get ItemResponsible () { return ItemResponsible; },
1875
+ get LateInterest () { return LateInterest; },
1876
+ get LogsIdentifier () { return LogsIdentifier; },
1877
+ get MaterialsProviderType () { return MaterialsProviderType; },
1893
1878
  get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
1894
- get BarCodeEnum () { return BarCodeEnum; },
1879
+ get NotesType () { return NotesType; },
1880
+ get NotificationType () { return NotificationType; },
1895
1881
  get OperationQuantityEnum () { return OperationQuantityEnum; },
1896
1882
  get OperationRulesEnum () { return OperationRulesEnum; },
1897
- get ItemResponsible () { return ItemResponsible; },
1883
+ get OperationStatusEnum () { return OperationStatusEnum; },
1884
+ get OrderMaterialStatus () { return OrderMaterialStatus; },
1885
+ get Origin () { return Origin; },
1886
+ get PaymentChoice () { return PaymentChoice; },
1887
+ get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
1888
+ get PaymentType () { return PaymentType; },
1889
+ get PhonesEnum () { return PhonesEnum; },
1890
+ get ProSkillsEnum () { return ProSkillsEnum; },
1891
+ get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
1892
+ get ProfileStatus () { return ProfileStatus; },
1893
+ get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
1898
1894
  get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
1899
- get DevisFormatEnum () { return DevisFormatEnum; },
1900
- get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1901
- get ConfigurationFieldType () { return ConfigurationFieldType; },
1902
- get LogsIdentifier () { return LogsIdentifier; },
1895
+ get ProjectType () { return ProjectType; },
1896
+ get ProjectTypeEnum () { return ProjectTypeEnum; },
1903
1897
  get QueryIdentifier () { return QueryIdentifier; },
1904
- get BillIssuedReasons () { return BillIssuedReasons; }
1898
+ get ROLE () { return ROLE; },
1899
+ get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
1900
+ get SendgridTemplates () { return SendgridTemplates; },
1901
+ get TermsOfPayment () { return TermsOfPayment; },
1902
+ get VisitReportStatus () { return VisitReportStatus; }
1905
1903
  };
1906
1904
 
1907
1905
  function isBuffer(obj) {
@@ -1943,5 +1941,5 @@ var createEvent = function createEvent(type, data, meta) {
1943
1941
  };
1944
1942
  };
1945
1943
 
1946
- export { Environments, ROLE, acls, types as articho, createEvent, flatten, getEnv, index$1 as getPlatformConfiguration, helpers, getPath as path, reversePathName, index as security, uid };
1944
+ 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
1945
  //# sourceMappingURL=config.esm.js.map