@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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Ibrael Espinosa
3
+ Copyright (c) 2023 Placeshaker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ exports.ROLE = void 0;
5
6
  (function (ROLE) {
6
7
  ROLE["CLIENT"] = "client";
7
8
  ROLE["SELLER"] = "seller";
@@ -14,7 +15,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
14
15
  /**
15
16
  * security context
16
17
  */
17
- var index = (function (env) {
18
+ var index$1 = (function (env) {
18
19
  var orderedAccess = [exports.ROLE.CLIENT, exports.ROLE.PRO, exports.ROLE.AGENT, exports.ROLE.ADMIN, exports.ROLE.SUPERADMIN];
19
20
  var hasRole = function hasRole(claims) {
20
21
  return !claims || !claims[env.security.claims.role] ? false : true;
@@ -175,7 +176,8 @@ var productionEnvironment = {
175
176
  enterpriseMedias: 'enterprises/{enterpriseId}/medias',
176
177
  configurations: 'enterprises/{enterpriseId}/configurations',
177
178
  logs: 'enterprises/{enterpriseId}/logs',
178
- systemVersions: 'systemVersions'
179
+ systemVersions: 'systemVersions',
180
+ userProfiles: 'users/{userId}/profiles'
179
181
  },
180
182
  docs: {
181
183
  user: 'users/{userId}',
@@ -565,6 +567,7 @@ var emulator = function emulator(base) {
565
567
  });
566
568
  };
567
569
 
570
+ exports.Environments = void 0;
568
571
  (function (Environments) {
569
572
  Environments["dev"] = "development";
570
573
  Environments["production"] = "production";
@@ -1029,7 +1032,6 @@ var createProducts = function createProducts(params) {
1029
1032
  // tariffs: params.test_4.tariffs,
1030
1033
  // },
1031
1034
  };
1032
-
1033
1035
  return products;
1034
1036
  };
1035
1037
 
@@ -1087,7 +1089,6 @@ var testing = {
1087
1089
  // },
1088
1090
  // additionalUserPrice: 10,
1089
1091
  },
1090
-
1091
1092
  plus: {
1092
1093
  id: 'prod_KzmyY1ysEOeK93',
1093
1094
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1141,7 +1142,6 @@ var testing = {
1141
1142
  // },
1142
1143
  // },
1143
1144
  };
1144
-
1145
1145
  var production = {
1146
1146
  classic: {
1147
1147
  id: 'prod_KzmYFhrWXrzWdR',
@@ -1248,7 +1248,7 @@ var production = {
1248
1248
  *
1249
1249
  * @param envName
1250
1250
  */
1251
- var index$1 = (function (envName) {
1251
+ var index = (function (envName) {
1252
1252
  if (envName === 'production') return createProducts(production);
1253
1253
  return createProducts(testing);
1254
1254
  });
@@ -1836,74 +1836,74 @@ var BillIssuedReasons;
1836
1836
 
1837
1837
  var types = {
1838
1838
  __proto__: null,
1839
- get ROLE () { return ROLE; },
1840
- get VisitReportStatus () { return VisitReportStatus; },
1839
+ get BarCodeEnum () { return BarCodeEnum; },
1840
+ get BillDiscountType () { return BillDiscountType; },
1841
+ get BillDocTypeEnum () { return BillDocTypeEnum; },
1842
+ get BillElementType () { return BillElementType; },
1843
+ get BillIssuedEntity () { return BillIssuedEntity; },
1844
+ get BillIssuedReasons () { return BillIssuedReasons; },
1845
+ get BillIssuedStatus () { return BillIssuedStatus; },
1846
+ get BillIssuedType () { return BillIssuedType; },
1847
+ get BillReceivedEntity () { return BillReceivedEntity; },
1848
+ get BillReceivedStatus () { return BillReceivedStatus; },
1849
+ get BillReceivedType () { return BillReceivedType; },
1850
+ get BillType () { return BillType; },
1851
+ get CategoryEntityEnum () { return CategoryEntityEnum; },
1852
+ get CommercialStatusEnum () { return CommercialStatusEnum; },
1853
+ get ConfigurationFieldType () { return ConfigurationFieldType; },
1854
+ get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1841
1855
  get DevisCommissionsEntity () { return DevisCommissionsEntity; },
1842
- get DevisHistoryType () { return DevisHistoryType; },
1843
- get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1856
+ get DevisContractingEntity () { return DevisContractingEntity; },
1844
1857
  get DevisDocColorEnum () { return DevisDocColorEnum; },
1845
1858
  get DevisDocDurationEnum () { return DevisDocDurationEnum; },
1846
- get MaterialsProviderType () { return MaterialsProviderType; },
1847
- get ProjectType () { return ProjectType; },
1848
- get OperationStatusEnum () { return OperationStatusEnum; },
1849
- get NotesType () { return NotesType; },
1850
- get NotificationType () { return NotificationType; },
1859
+ get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1860
+ get DevisFormatEnum () { return DevisFormatEnum; },
1861
+ get DevisHistoryType () { return DevisHistoryType; },
1862
+ get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1863
+ get DevisPdfType () { return DevisPdfType; },
1851
1864
  get DevisStatusEnum () { return DevisStatusEnum; },
1865
+ get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1852
1866
  get DevisTypeEnum () { return DevisTypeEnum; },
1853
1867
  get DevisViewMode () { return DevisViewMode; },
1854
- get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1855
1868
  get DocumentsTypeEnum () { return DocumentsTypeEnum; },
1856
- get EventsTypeEnum () { return EventsTypeEnum; },
1857
- get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
1858
- get BillDocTypeEnum () { return BillDocTypeEnum; },
1859
- get BillIssuedStatus () { return BillIssuedStatus; },
1860
- get BillReceivedStatus () { return BillReceivedStatus; },
1861
- get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
1862
- get BillType () { return BillType; },
1863
- get BillReceivedEntity () { return BillReceivedEntity; },
1864
- get BillReceivedType () { return BillReceivedType; },
1865
- get BillIssuedEntity () { return BillIssuedEntity; },
1866
- get BillIssuedType () { return BillIssuedType; },
1867
- get BillElementType () { return BillElementType; },
1868
- get BillDiscountType () { return BillDiscountType; },
1869
- get PaymentType () { return PaymentType; },
1870
- get ProjectTypeEnum () { return ProjectTypeEnum; },
1871
- get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
1872
- get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
1873
- get ProSkillsEnum () { return ProSkillsEnum; },
1874
- get CommercialStatusEnum () { return CommercialStatusEnum; },
1875
- get Origin () { return Origin; },
1876
- get OrderMaterialStatus () { return OrderMaterialStatus; },
1877
- get PhonesEnum () { return PhonesEnum; },
1878
- get SendgridTemplates () { return SendgridTemplates; },
1879
- get TermsOfPayment () { return TermsOfPayment; },
1880
- get PaymentChoice () { return PaymentChoice; },
1881
- get LateInterest () { return LateInterest; },
1882
- get ProfileStatus () { return ProfileStatus; },
1883
- get EstimationOriginEnum () { return EstimationOriginEnum; },
1884
- get EstimationTypeEnum () { return EstimationTypeEnum; },
1885
1869
  get EmailTemplate () { return EmailTemplate; },
1886
- get DevisPdfType () { return DevisPdfType; },
1887
- get DevisContractingEntity () { return DevisContractingEntity; },
1888
- get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1889
1870
  get EnterpriseProductEnum () { return EnterpriseProductEnum; },
1871
+ get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1872
+ get EstimationOriginEnum () { return EstimationOriginEnum; },
1890
1873
  get EstimationStatusEnum () { return EstimationStatusEnum; },
1874
+ get EstimationTypeEnum () { return EstimationTypeEnum; },
1875
+ get EventsTypeEnum () { return EventsTypeEnum; },
1891
1876
  get HistoryActionEnum () { return HistoryActionEnum; },
1892
1877
  get HistoryEntityType () { return HistoryEntityType; },
1893
- get CategoryEntityEnum () { return CategoryEntityEnum; },
1894
- get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1878
+ get ItemResponsible () { return ItemResponsible; },
1879
+ get LateInterest () { return LateInterest; },
1880
+ get LogsIdentifier () { return LogsIdentifier; },
1881
+ get MaterialsProviderType () { return MaterialsProviderType; },
1895
1882
  get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
1896
- get BarCodeEnum () { return BarCodeEnum; },
1883
+ get NotesType () { return NotesType; },
1884
+ get NotificationType () { return NotificationType; },
1897
1885
  get OperationQuantityEnum () { return OperationQuantityEnum; },
1898
1886
  get OperationRulesEnum () { return OperationRulesEnum; },
1899
- get ItemResponsible () { return ItemResponsible; },
1887
+ get OperationStatusEnum () { return OperationStatusEnum; },
1888
+ get OrderMaterialStatus () { return OrderMaterialStatus; },
1889
+ get Origin () { return Origin; },
1890
+ get PaymentChoice () { return PaymentChoice; },
1891
+ get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
1892
+ get PaymentType () { return PaymentType; },
1893
+ get PhonesEnum () { return PhonesEnum; },
1894
+ get ProSkillsEnum () { return ProSkillsEnum; },
1895
+ get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
1896
+ get ProfileStatus () { return ProfileStatus; },
1897
+ get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
1900
1898
  get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
1901
- get DevisFormatEnum () { return DevisFormatEnum; },
1902
- get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1903
- get ConfigurationFieldType () { return ConfigurationFieldType; },
1904
- get LogsIdentifier () { return LogsIdentifier; },
1899
+ get ProjectType () { return ProjectType; },
1900
+ get ProjectTypeEnum () { return ProjectTypeEnum; },
1905
1901
  get QueryIdentifier () { return QueryIdentifier; },
1906
- get BillIssuedReasons () { return BillIssuedReasons; }
1902
+ get ROLE () { return ROLE; },
1903
+ get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
1904
+ get SendgridTemplates () { return SendgridTemplates; },
1905
+ get TermsOfPayment () { return TermsOfPayment; },
1906
+ get VisitReportStatus () { return VisitReportStatus; }
1907
1907
  };
1908
1908
 
1909
1909
  function isBuffer(obj) {
@@ -1950,10 +1950,10 @@ exports.articho = types;
1950
1950
  exports.createEvent = createEvent;
1951
1951
  exports.flatten = flatten;
1952
1952
  exports.getEnv = getEnv;
1953
- exports.getPlatformConfiguration = index$1;
1953
+ exports.getPlatformConfiguration = index;
1954
1954
  exports.helpers = helpers;
1955
1955
  exports.path = getPath;
1956
1956
  exports.reversePathName = reversePathName;
1957
- exports.security = index;
1957
+ exports.security = index$1;
1958
1958
  exports.uid = uid;
1959
1959
  //# sourceMappingURL=config.cjs.development.js.map