@placeshakr/config 10.19.0-alpha.8 → 10.19.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.
@@ -156,7 +156,8 @@ var productionEnvironment = {
156
156
  histories: 'enterprises/{enterpriseId}/histories',
157
157
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
158
158
  indexes: 'enterprises/{enterpriseId}/indexes',
159
- notifications: 'enterprises/{enterpriseId}/notifications'
159
+ notifications: 'enterprises/{enterpriseId}/notifications',
160
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
160
161
  },
161
162
  docs: {
162
163
  user: 'users/{userId}',
@@ -197,7 +198,8 @@ var productionEnvironment = {
197
198
  userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
198
199
  history: 'enterprises/{enterpriseId}/histories/{historyId}',
199
200
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
200
- notification: 'enterprises/{enterpriseId}/notifications/{notificationId}'
201
+ notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
202
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
201
203
  },
202
204
  indexes: {
203
205
  users: 'users',
@@ -242,6 +244,7 @@ var productionEnvironment = {
242
244
  systemOperationsMaterials: 'system-operations-materials',
243
245
  systemMaterialsProvider: 'system-materials-provider',
244
246
  systemStatus: 'system-status',
247
+ systemNomenclatures: 'system-nomenclatures',
245
248
  systemCategories: 'system-categories'
246
249
  }
247
250
  },
@@ -463,6 +466,13 @@ var productionEnvironment = {
463
466
  maxValuesPerFacet: 1000,
464
467
  maxFacetHits: 100
465
468
  },
469
+ systemNomenclatures: {
470
+ searchableAttributes: ['identifier', 'value'],
471
+ attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
472
+ ranking: ['desc(updatedAt)'],
473
+ maxValuesPerFacet: 1000,
474
+ maxFacetHits: 100
475
+ },
466
476
  billing: {
467
477
  attributesForFaceting: ['searchable(scope)', 'customer', 'paid', 'searchable(status)'],
468
478
  maxValuesPerFacet: 1000,
@@ -510,9 +520,9 @@ var productionEnvironment = {
510
520
  maxFacetHits: 100
511
521
  },
512
522
  nomenclatures: {
513
- searchableAttributes: ['name'],
523
+ searchableAttributes: ['value'],
514
524
  attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
515
- ranking: ['asc(name)'],
525
+ ranking: ['asc(value)'],
516
526
  maxValuesPerFacet: 1000,
517
527
  maxFacetHits: 100
518
528
  }
@@ -597,6 +607,7 @@ var test = function test(base) {
597
607
  systemOperationsMaterials: 'system-operations-materials',
598
608
  systemMaterialsProvider: 'system-materials-provider',
599
609
  systemStatus: 'test-system-status',
610
+ systemNomenclatures: 'test-system-nomenclatures',
600
611
  systemCategories: 'system-categories'
601
612
  }
602
613
  }),
@@ -651,6 +662,7 @@ var emulator = function emulator(base) {
651
662
  systemOperationsMaterials: 'system-operations-materials',
652
663
  systemMaterialsProvider: 'system-materials-provider',
653
664
  systemStatus: 'emulator-system-status',
665
+ systemNomenclatures: 'emulator-system-nomenclatures',
654
666
  systemCategories: 'system-categories'
655
667
  }
656
668
  }),
@@ -743,7 +755,8 @@ var helpers = {
743
755
  invitations: /*#__PURE__*/FactoryCreateFunction(),
744
756
  downPayment: /*#__PURE__*/FactoryCreateFunction(),
745
757
  histories: /*#__PURE__*/FactoryCreateFunction(),
746
- receptionVoucher: /*#__PURE__*/FactoryCreateFunction()
758
+ receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
759
+ nomenclatures: /*#__PURE__*/FactoryCreateFunction()
747
760
  };
748
761
 
749
762
  /**
@@ -823,7 +836,7 @@ var uid = {
823
836
  timestamp: /*#__PURE__*/function () {
824
837
  return function (id, asDate) {
825
838
  var time = 0;
826
- var data = id.substr(0, 8);
839
+ var data = id.substring(0, 8);
827
840
 
828
841
  for (var i = 0; i < 8; i++) {
829
842
  time = time * 62 + ASCII_CHARS.indexOf(data[i]);
@@ -895,23 +908,37 @@ var createProducts = function createProducts(params) {
895
908
  id: params.standard.id,
896
909
  internal: 'standard',
897
910
  product: {
898
- price: 6900,
899
- active: true,
900
- description: 'Pour les entreprises unipersonnelles',
901
911
  id: params.standard.id,
902
912
  name: 'Standard',
913
+ description: 'Pour les entreprises unipersonnelles',
903
914
  type: 'service',
915
+ price: 69,
904
916
  main: true,
917
+ active: true,
918
+ isPrivate: true,
905
919
  rating: 1,
906
920
  order: 1,
907
921
  includes: {
908
- canCreateUser: false,
909
- maxTeamMembers: 1,
910
- accounting: true
922
+ maxAdminUsers: null,
923
+ maxAgentUsers: null,
924
+ maxProUsers: null,
925
+ maxSellerUsers: null,
926
+ authorizationManagement: true,
927
+ dashboard: true,
928
+ accounting: true,
929
+ projectStorage: true,
930
+ customCatalog: true,
931
+ customConfig: true,
932
+ exportReports: true,
933
+ externalApiIntegration: true,
934
+ support: true
911
935
  },
912
- plans: [params.standard.prices.monthly],
936
+ plans: Object.values(params.standard.tariffs).map(function (t) {
937
+ return t.id;
938
+ }),
913
939
  tax_rates: params.standard.tax_rates
914
940
  },
941
+ tariffs: params.standard.tariffs,
915
942
  additionalUser: params.standard.prices.additionalUser,
916
943
  additionalUserPrice: params.standard.additionalUserPrice
917
944
  },
@@ -919,54 +946,76 @@ var createProducts = function createProducts(params) {
919
946
  id: params.plus.id,
920
947
  internal: 'plus',
921
948
  product: {
922
- active: true,
923
- description: 'Idéal pour les agences et les entreprises de plus grande taille',
924
949
  id: params.plus.id,
925
950
  name: 'Plus',
951
+ description: 'Idéal pour les agences et les entreprises de plus grande taille',
926
952
  type: 'service',
927
- rating: 2,
953
+ price: 159,
928
954
  main: true,
929
- price: 15900,
930
- order: 3,
955
+ active: true,
956
+ isPrivate: true,
957
+ rating: 2,
958
+ order: 2,
931
959
  includes: {
932
- canCreateUser: true,
933
- maxTeamMembers: 10,
934
- importExport: true,
935
- accounting: true
960
+ maxAdminUsers: null,
961
+ maxAgentUsers: null,
962
+ maxProUsers: null,
963
+ maxSellerUsers: null,
964
+ authorizationManagement: true,
965
+ dashboard: true,
966
+ accounting: true,
967
+ projectStorage: true,
968
+ customCatalog: true,
969
+ customConfig: true,
970
+ exportReports: true,
971
+ externalApiIntegration: true,
972
+ support: true
936
973
  },
937
- tax_rates: params.plus.tax_rates,
938
- plans: [params.plus.prices.monthly]
974
+ plans: Object.values(params.plus.tariffs).map(function (t) {
975
+ return t.id;
976
+ }),
977
+ tax_rates: params.plus.tax_rates
939
978
  },
979
+ tariffs: params.plus.tariffs,
940
980
  additionalUser: params.plus.prices.additionalUser,
941
981
  additionalUserPrice: params.plus.additionalUserPrice
942
982
  },
943
- premium: {
944
- id: params.premium.id,
945
- internal: 'premium',
983
+ classic: {
984
+ id: params.classic.id,
985
+ internal: 'classic',
946
986
  product: {
947
- active: true,
948
- description: 'Pour les grandes entreprises qui cherchent des outils administratifs poussés',
949
- id: params.premium.id,
950
- name: 'Premium',
987
+ id: params.classic.id,
988
+ name: 'Abonnement Articho',
989
+ description: '',
951
990
  type: 'service',
952
- isDefault: true,
991
+ price: 159,
953
992
  main: true,
993
+ active: true,
954
994
  rating: 3,
955
- tax_rates: params.premium.tax_rates,
956
- price: 29900,
957
- order: 2,
995
+ order: 3,
958
996
  includes: {
959
- canCreateUser: true,
960
- customCatalog: true,
961
- maxTeamMembers: 20,
962
- importExport: true,
997
+ maxAdminUsers: 1,
998
+ maxAgentUsers: 0,
999
+ maxProUsers: 0,
1000
+ maxSellerUsers: 0,
1001
+ authorizationManagement: true,
1002
+ dashboard: true,
963
1003
  accounting: true,
964
- clientInterface: true
1004
+ projectStorage: true,
1005
+ customCatalog: true,
1006
+ customConfig: true,
1007
+ exportReports: true,
1008
+ externalApiIntegration: true,
1009
+ support: true
965
1010
  },
966
- plans: [params.premium.prices.monthly]
1011
+ plans: Object.values(params.classic.tariffs).map(function (t) {
1012
+ return t.id;
1013
+ }),
1014
+ tax_rates: params.classic.tax_rates
967
1015
  },
968
- additionalUser: params.premium.prices.additionalUser,
969
- additionalUserPrice: params.premium.additionalUserPrice
1016
+ tariffs: params.classic.tariffs,
1017
+ additionalUser: params.classic.prices.additionalUser,
1018
+ additionalUserPrice: params.classic.additionalUserPrice
970
1019
  }
971
1020
  };
972
1021
  return products;
@@ -974,60 +1023,156 @@ var createProducts = function createProducts(params) {
974
1023
 
975
1024
  var testing = {
976
1025
  standard: {
977
- id: 'prod_HzWVSbBrLFn02Y',
1026
+ id: 'prod_KzmEyS3UQ5lbnz',
978
1027
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1028
+ tariffs: {
1029
+ base: {
1030
+ id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1031
+ price: 69,
1032
+ usageType: 'licensed',
1033
+ type: 'base'
1034
+ }
1035
+ },
979
1036
  prices: {
980
- monthly: 'price_1K4ZYILFzcsAA7x6k4fgzosO',
981
- additionalUser: 'price_1K4ZYiLFzcsAA7x6u3G68s3N'
1037
+ monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1038
+ additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe'
982
1039
  },
983
- additionalUserPrice: 1000
1040
+ additionalUserPrice: 10
984
1041
  },
985
1042
  plus: {
986
- id: 'prod_HzWYKl09U12eLQ',
1043
+ id: 'prod_KzmyY1ysEOeK93',
987
1044
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1045
+ tariffs: {
1046
+ base: {
1047
+ id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1048
+ price: 159,
1049
+ usageType: 'licensed',
1050
+ type: 'base'
1051
+ }
1052
+ },
988
1053
  prices: {
989
- monthly: 'price_1HPXVBLFzcsAA7x61LF40zVU',
990
- additionalUser: 'price_1HRPfVLFzcsAA7x6JcMj1DWr'
1054
+ monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1055
+ additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX'
991
1056
  },
992
- additionalUserPrice: 1000
1057
+ additionalUserPrice: 5
993
1058
  },
994
- premium: {
995
- id: 'prod_HzWZVpSP77M3Pt',
1059
+ classic: {
1060
+ id: 'prod_KzmO4rORyWl8cA',
996
1061
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1062
+ tariffs: {
1063
+ base: {
1064
+ id: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
1065
+ price: 159,
1066
+ usageType: 'licensed',
1067
+ type: 'base'
1068
+ },
1069
+ additionalAdmin: {
1070
+ id: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
1071
+ price: 30,
1072
+ usageType: 'metered',
1073
+ type: 'extra_user'
1074
+ },
1075
+ additionalAgent: {
1076
+ id: 'price_1KJmpiLFzcsAA7x6gFBgAXkr',
1077
+ price: 20,
1078
+ usageType: 'metered',
1079
+ type: 'extra_user'
1080
+ },
1081
+ additionalPro: {
1082
+ id: 'price_1KJmpiLFzcsAA7x6JxTnlLC8',
1083
+ price: 10,
1084
+ usageType: 'metered',
1085
+ type: 'extra_user'
1086
+ },
1087
+ additionalSeller: {
1088
+ id: 'price_1KJmpiLFzcsAA7x6XS9PBgQo',
1089
+ price: 2,
1090
+ usageType: 'metered',
1091
+ type: 'extra_user'
1092
+ }
1093
+ },
997
1094
  prices: {
998
- monthly: 'price_1HPXWPLFzcsAA7x6sjYdFXOR',
999
- additionalUser: 'price_1HRPjhLFzcsAA7x6o28A8tDC'
1095
+ monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
1096
+ additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw'
1000
1097
  },
1001
- additionalUserPrice: 500
1098
+ additionalUserPrice: 30
1002
1099
  }
1003
1100
  };
1004
1101
  var production = {
1005
1102
  standard: {
1006
1103
  id: 'prod_HsAwETfIUblsAT',
1007
1104
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1105
+ tariffs: {
1106
+ base: {
1107
+ id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1108
+ price: 69,
1109
+ usageType: 'licensed',
1110
+ type: 'base'
1111
+ }
1112
+ },
1008
1113
  prices: {
1009
1114
  monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1010
1115
  additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
1011
1116
  },
1012
- additionalUserPrice: 1000
1117
+ additionalUserPrice: 10
1013
1118
  },
1014
1119
  plus: {
1015
1120
  id: 'prod_HsB2YJPEZ9H98c',
1016
1121
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1122
+ tariffs: {
1123
+ base: {
1124
+ id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1125
+ price: 159,
1126
+ usageType: 'licensed',
1127
+ type: 'base'
1128
+ }
1129
+ },
1017
1130
  prices: {
1018
1131
  monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1019
1132
  additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
1020
1133
  },
1021
- additionalUserPrice: 1000
1134
+ additionalUserPrice: 5
1022
1135
  },
1023
- premium: {
1024
- id: 'prod_HsB1kn49KcAbL1',
1136
+ classic: {
1137
+ id: 'prod_KzmYFhrWXrzWdR',
1025
1138
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1139
+ tariffs: {
1140
+ base: {
1141
+ id: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
1142
+ price: 159,
1143
+ usageType: 'licensed',
1144
+ type: 'base'
1145
+ },
1146
+ additionalAdmin: {
1147
+ id: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
1148
+ price: 30,
1149
+ usageType: 'metered',
1150
+ type: 'extra_user'
1151
+ },
1152
+ additionalAgent: {
1153
+ id: 'price_1KJmzNLFzcsAA7x6DeUQScKY',
1154
+ price: 20,
1155
+ usageType: 'metered',
1156
+ type: 'extra_user'
1157
+ },
1158
+ additionalPro: {
1159
+ id: 'price_1KJmzNLFzcsAA7x695wsj6rA',
1160
+ price: 10,
1161
+ usageType: 'metered',
1162
+ type: 'extra_user'
1163
+ },
1164
+ additionalSeller: {
1165
+ id: 'price_1KJmzNLFzcsAA7x6gF62MX41',
1166
+ price: 2,
1167
+ usageType: 'metered',
1168
+ type: 'extra_user'
1169
+ }
1170
+ },
1026
1171
  prices: {
1027
- monthly: 'price_1HIQfYLFzcsAA7x6AFuSBinh',
1028
- additionalUser: 'price_1HRfz6LFzcsAA7x6dFDETn6N'
1172
+ monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
1173
+ additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus'
1029
1174
  },
1030
- additionalUserPrice: 500
1175
+ additionalUserPrice: 30
1031
1176
  }
1032
1177
  };
1033
1178
  /**
@@ -1139,7 +1284,7 @@ var DocumentsTypeEnum;
1139
1284
  var EventsTypeEnum;
1140
1285
 
1141
1286
  (function (EventsTypeEnum) {
1142
- EventsTypeEnum["OTHER"] = "OTHER";
1287
+ EventsTypeEnum["OTHER"] = "AUTRE";
1143
1288
  EventsTypeEnum["VISIT"] = "VISIT";
1144
1289
  EventsTypeEnum["DELIVERY"] = "DELIVERY";
1145
1290
  EventsTypeEnum["CONSTRUCTION"] = "CONSTRUCTION";
@@ -1539,6 +1684,7 @@ var NomenclaturesIdentifier;
1539
1684
  NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
1540
1685
  NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
1541
1686
  NomenclaturesIdentifier["TVA"] = "TVA";
1687
+ NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
1542
1688
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
1543
1689
 
1544
1690
  var OperationQuantityEnum;