@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 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";
@@ -1248,7 +1251,7 @@ var production = {
1248
1251
  *
1249
1252
  * @param envName
1250
1253
  */
1251
- var index$1 = (function (envName) {
1254
+ var index = (function (envName) {
1252
1255
  if (envName === 'production') return createProducts(production);
1253
1256
  return createProducts(testing);
1254
1257
  });
@@ -1836,74 +1839,74 @@ var BillIssuedReasons;
1836
1839
 
1837
1840
  var types = {
1838
1841
  __proto__: null,
1839
- get ROLE () { return ROLE; },
1840
- get VisitReportStatus () { return VisitReportStatus; },
1842
+ get BarCodeEnum () { return BarCodeEnum; },
1843
+ get BillDiscountType () { return BillDiscountType; },
1844
+ get BillDocTypeEnum () { return BillDocTypeEnum; },
1845
+ get BillElementType () { return BillElementType; },
1846
+ get BillIssuedEntity () { return BillIssuedEntity; },
1847
+ get BillIssuedReasons () { return BillIssuedReasons; },
1848
+ get BillIssuedStatus () { return BillIssuedStatus; },
1849
+ get BillIssuedType () { return BillIssuedType; },
1850
+ get BillReceivedEntity () { return BillReceivedEntity; },
1851
+ get BillReceivedStatus () { return BillReceivedStatus; },
1852
+ get BillReceivedType () { return BillReceivedType; },
1853
+ get BillType () { return BillType; },
1854
+ get CategoryEntityEnum () { return CategoryEntityEnum; },
1855
+ get CommercialStatusEnum () { return CommercialStatusEnum; },
1856
+ get ConfigurationFieldType () { return ConfigurationFieldType; },
1857
+ get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1841
1858
  get DevisCommissionsEntity () { return DevisCommissionsEntity; },
1842
- get DevisHistoryType () { return DevisHistoryType; },
1843
- get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1859
+ get DevisContractingEntity () { return DevisContractingEntity; },
1844
1860
  get DevisDocColorEnum () { return DevisDocColorEnum; },
1845
1861
  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; },
1862
+ get DevisDocSectionEnum () { return DevisDocSectionEnum; },
1863
+ get DevisFormatEnum () { return DevisFormatEnum; },
1864
+ get DevisHistoryType () { return DevisHistoryType; },
1865
+ get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1866
+ get DevisPdfType () { return DevisPdfType; },
1851
1867
  get DevisStatusEnum () { return DevisStatusEnum; },
1868
+ get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1852
1869
  get DevisTypeEnum () { return DevisTypeEnum; },
1853
1870
  get DevisViewMode () { return DevisViewMode; },
1854
- get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
1855
1871
  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
1872
  get EmailTemplate () { return EmailTemplate; },
1886
- get DevisPdfType () { return DevisPdfType; },
1887
- get DevisContractingEntity () { return DevisContractingEntity; },
1888
- get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1889
1873
  get EnterpriseProductEnum () { return EnterpriseProductEnum; },
1874
+ get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
1875
+ get EstimationOriginEnum () { return EstimationOriginEnum; },
1890
1876
  get EstimationStatusEnum () { return EstimationStatusEnum; },
1877
+ get EstimationTypeEnum () { return EstimationTypeEnum; },
1878
+ get EventsTypeEnum () { return EventsTypeEnum; },
1891
1879
  get HistoryActionEnum () { return HistoryActionEnum; },
1892
1880
  get HistoryEntityType () { return HistoryEntityType; },
1893
- get CategoryEntityEnum () { return CategoryEntityEnum; },
1894
- get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
1881
+ get ItemResponsible () { return ItemResponsible; },
1882
+ get LateInterest () { return LateInterest; },
1883
+ get LogsIdentifier () { return LogsIdentifier; },
1884
+ get MaterialsProviderType () { return MaterialsProviderType; },
1895
1885
  get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
1896
- get BarCodeEnum () { return BarCodeEnum; },
1886
+ get NotesType () { return NotesType; },
1887
+ get NotificationType () { return NotificationType; },
1897
1888
  get OperationQuantityEnum () { return OperationQuantityEnum; },
1898
1889
  get OperationRulesEnum () { return OperationRulesEnum; },
1899
- get ItemResponsible () { return ItemResponsible; },
1890
+ get OperationStatusEnum () { return OperationStatusEnum; },
1891
+ get OrderMaterialStatus () { return OrderMaterialStatus; },
1892
+ get Origin () { return Origin; },
1893
+ get PaymentChoice () { return PaymentChoice; },
1894
+ get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
1895
+ get PaymentType () { return PaymentType; },
1896
+ get PhonesEnum () { return PhonesEnum; },
1897
+ get ProSkillsEnum () { return ProSkillsEnum; },
1898
+ get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
1899
+ get ProfileStatus () { return ProfileStatus; },
1900
+ get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
1900
1901
  get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
1901
- get DevisFormatEnum () { return DevisFormatEnum; },
1902
- get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
1903
- get ConfigurationFieldType () { return ConfigurationFieldType; },
1904
- get LogsIdentifier () { return LogsIdentifier; },
1902
+ get ProjectType () { return ProjectType; },
1903
+ get ProjectTypeEnum () { return ProjectTypeEnum; },
1905
1904
  get QueryIdentifier () { return QueryIdentifier; },
1906
- get BillIssuedReasons () { return BillIssuedReasons; }
1905
+ get ROLE () { return ROLE; },
1906
+ get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
1907
+ get SendgridTemplates () { return SendgridTemplates; },
1908
+ get TermsOfPayment () { return TermsOfPayment; },
1909
+ get VisitReportStatus () { return VisitReportStatus; }
1907
1910
  };
1908
1911
 
1909
1912
  function isBuffer(obj) {
@@ -1950,10 +1953,10 @@ exports.articho = types;
1950
1953
  exports.createEvent = createEvent;
1951
1954
  exports.flatten = flatten;
1952
1955
  exports.getEnv = getEnv;
1953
- exports.getPlatformConfiguration = index$1;
1956
+ exports.getPlatformConfiguration = index;
1954
1957
  exports.helpers = helpers;
1955
1958
  exports.path = getPath;
1956
1959
  exports.reversePathName = reversePathName;
1957
- exports.security = index;
1960
+ exports.security = index$1;
1958
1961
  exports.uid = uid;
1959
1962
  //# sourceMappingURL=config.cjs.development.js.map