@placeshakr/config 10.19.6-alpha.1 → 10.19.6-alpha.4
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/dist/config.cjs.development.js +132 -108
- 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 +132 -108
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/plans/types.d.ts +4 -0
- package/dist/plans/types.d.ts.map +1 -1
- package/dist/types.d.ts +21 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +4 -1
- package/src/plans/base.ts +68 -68
- package/src/plans/index.ts +33 -33
- package/src/plans/types.ts +4 -4
- package/src/types.ts +26 -3
|
@@ -289,7 +289,7 @@ var productionEnvironment = {
|
|
|
289
289
|
},
|
|
290
290
|
admins: {
|
|
291
291
|
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
292
|
-
attributesForFaceting: ['active', 'searchable(email)', 'searchable(scope)'],
|
|
292
|
+
attributesForFaceting: ['active', 'searchable(email)', 'searchable(userId)', 'searchable(scope)'],
|
|
293
293
|
maxValuesPerFacet: 1000,
|
|
294
294
|
maxFacetHits: 100
|
|
295
295
|
},
|
|
@@ -320,7 +320,7 @@ var productionEnvironment = {
|
|
|
320
320
|
},
|
|
321
321
|
materials: {
|
|
322
322
|
searchableAttributes: ['name', 'unitPrice', 'provider'],
|
|
323
|
-
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', '
|
|
323
|
+
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id', 'supplier.id'],
|
|
324
324
|
ranking: ['asc(name)'],
|
|
325
325
|
maxValuesPerFacet: 1000,
|
|
326
326
|
maxFacetHits: 100
|
|
@@ -333,7 +333,7 @@ var productionEnvironment = {
|
|
|
333
333
|
},
|
|
334
334
|
operationsMaterials: {
|
|
335
335
|
searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
|
|
336
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)'],
|
|
336
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)', 'searchable(externalId)'],
|
|
337
337
|
ranking: ['asc(order)'],
|
|
338
338
|
maxValuesPerFacet: 1000,
|
|
339
339
|
maxFacetHits: 100
|
|
@@ -958,75 +958,79 @@ var createProducts = function createProducts(params) {
|
|
|
958
958
|
tax_rates: params.classic.tax_rates
|
|
959
959
|
},
|
|
960
960
|
tariffs: params.classic.tariffs
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
961
|
+
},
|
|
962
|
+
standard: {
|
|
963
|
+
id: params.standard.id,
|
|
964
|
+
internal: 'standard',
|
|
965
|
+
product: {
|
|
966
|
+
id: params.standard.id,
|
|
967
|
+
name: 'Standard',
|
|
968
|
+
description: 'Pour les entreprises unipersonnelles',
|
|
969
|
+
type: 'service',
|
|
970
|
+
price: 69,
|
|
971
|
+
main: true,
|
|
972
|
+
active: true,
|
|
973
|
+
isPrivate: true,
|
|
974
|
+
rating: 1,
|
|
975
|
+
order: 1,
|
|
976
|
+
includes: {
|
|
977
|
+
maxAdminUsers: null,
|
|
978
|
+
maxAgentUsers: null,
|
|
979
|
+
maxProUsers: null,
|
|
980
|
+
maxSellerUsers: null,
|
|
981
|
+
authorizationManagement: true,
|
|
982
|
+
dashboard: true,
|
|
983
|
+
accounting: true,
|
|
984
|
+
projectStorage: true,
|
|
985
|
+
customCatalog: true,
|
|
986
|
+
customConfig: true,
|
|
987
|
+
exportReports: true,
|
|
988
|
+
externalApiIntegration: true,
|
|
989
|
+
support: true
|
|
990
|
+
},
|
|
991
|
+
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
992
|
+
return t.id;
|
|
993
|
+
}),
|
|
994
|
+
tax_rates: params.standard.tax_rates
|
|
995
|
+
},
|
|
996
|
+
tariffs: params.standard.tariffs
|
|
997
|
+
},
|
|
998
|
+
plus: {
|
|
999
|
+
id: params.plus.id,
|
|
1000
|
+
internal: 'plus',
|
|
1001
|
+
product: {
|
|
1002
|
+
id: params.plus.id,
|
|
1003
|
+
name: 'Plus',
|
|
1004
|
+
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
1005
|
+
type: 'service',
|
|
1006
|
+
price: 159,
|
|
1007
|
+
main: true,
|
|
1008
|
+
active: true,
|
|
1009
|
+
isPrivate: true,
|
|
1010
|
+
rating: 2,
|
|
1011
|
+
order: 2,
|
|
1012
|
+
includes: {
|
|
1013
|
+
maxAdminUsers: null,
|
|
1014
|
+
maxAgentUsers: null,
|
|
1015
|
+
maxProUsers: null,
|
|
1016
|
+
maxSellerUsers: null,
|
|
1017
|
+
authorizationManagement: true,
|
|
1018
|
+
dashboard: true,
|
|
1019
|
+
accounting: true,
|
|
1020
|
+
projectStorage: true,
|
|
1021
|
+
customCatalog: true,
|
|
1022
|
+
customConfig: true,
|
|
1023
|
+
exportReports: true,
|
|
1024
|
+
externalApiIntegration: true,
|
|
1025
|
+
support: true
|
|
1026
|
+
},
|
|
1027
|
+
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
1028
|
+
return t.id;
|
|
1029
|
+
}),
|
|
1030
|
+
tax_rates: params.plus.tax_rates
|
|
1031
|
+
},
|
|
1032
|
+
tariffs: params.plus.tariffs
|
|
1033
|
+
} // test_1: {
|
|
1030
1034
|
// id: params.test_1.id,
|
|
1031
1035
|
// internal: 'test_1',
|
|
1032
1036
|
// product: {
|
|
@@ -1203,26 +1207,36 @@ var testing = {
|
|
|
1203
1207
|
type: 'extra_user'
|
|
1204
1208
|
}
|
|
1205
1209
|
}
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1210
|
+
},
|
|
1211
|
+
standard: {
|
|
1212
|
+
id: 'prod_KzmEyS3UQ5lbnz',
|
|
1213
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1214
|
+
tariffs: {
|
|
1215
|
+
base: {
|
|
1216
|
+
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1217
|
+
price: 69,
|
|
1218
|
+
usageType: 'licensed',
|
|
1219
|
+
type: 'base'
|
|
1220
|
+
}
|
|
1221
|
+
} // prices: {
|
|
1222
|
+
// monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1223
|
+
// additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1224
|
+
// },
|
|
1225
|
+
// additionalUserPrice: 10,
|
|
1226
|
+
|
|
1227
|
+
},
|
|
1228
|
+
plus: {
|
|
1229
|
+
id: 'prod_KzmyY1ysEOeK93',
|
|
1230
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1231
|
+
tariffs: {
|
|
1232
|
+
base: {
|
|
1233
|
+
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1234
|
+
price: 159,
|
|
1235
|
+
usageType: 'licensed',
|
|
1236
|
+
type: 'base'
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
} // test_1: {
|
|
1226
1240
|
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1227
1241
|
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1228
1242
|
// tariffs: {
|
|
@@ -1300,21 +1314,31 @@ var production = {
|
|
|
1300
1314
|
type: 'extra_user'
|
|
1301
1315
|
}
|
|
1302
1316
|
}
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1317
|
+
},
|
|
1318
|
+
standard: {
|
|
1319
|
+
id: 'prod_HsAwETfIUblsAT',
|
|
1320
|
+
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1321
|
+
tariffs: {
|
|
1322
|
+
base: {
|
|
1323
|
+
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1324
|
+
price: 69,
|
|
1325
|
+
usageType: 'licensed',
|
|
1326
|
+
type: 'base'
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
plus: {
|
|
1331
|
+
id: 'prod_HsB2YJPEZ9H98c',
|
|
1332
|
+
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1333
|
+
tariffs: {
|
|
1334
|
+
base: {
|
|
1335
|
+
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1336
|
+
price: 159,
|
|
1337
|
+
usageType: 'licensed',
|
|
1338
|
+
type: 'base'
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
} // test_1: {
|
|
1318
1342
|
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1319
1343
|
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1320
1344
|
// tariffs: {
|
|
@@ -1878,7 +1902,7 @@ var NomenclaturesIdentifier;
|
|
|
1878
1902
|
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1879
1903
|
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1880
1904
|
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
1881
|
-
NomenclaturesIdentifier["
|
|
1905
|
+
NomenclaturesIdentifier["MARGINS"] = "MARGINS";
|
|
1882
1906
|
NomenclaturesIdentifier["TERMS_OF_SALE"] = "TERMS_OF_SALE";
|
|
1883
1907
|
NomenclaturesIdentifier["NOTES_MODELS"] = "NOTES_MODELS";
|
|
1884
1908
|
NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
|