@placeshakr/config 10.19.6-alpha.2 → 10.19.8
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 +130 -106
- 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 +130 -106
- 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 +4 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +3 -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 +4 -1
package/dist/config.esm.js
CHANGED
|
@@ -318,7 +318,7 @@ var productionEnvironment = {
|
|
|
318
318
|
},
|
|
319
319
|
materials: {
|
|
320
320
|
searchableAttributes: ['name', 'unitPrice', 'provider'],
|
|
321
|
-
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id'],
|
|
321
|
+
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id', 'supplier.id'],
|
|
322
322
|
ranking: ['asc(name)'],
|
|
323
323
|
maxValuesPerFacet: 1000,
|
|
324
324
|
maxFacetHits: 100
|
|
@@ -331,7 +331,7 @@ var productionEnvironment = {
|
|
|
331
331
|
},
|
|
332
332
|
operationsMaterials: {
|
|
333
333
|
searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
|
|
334
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)'],
|
|
334
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)', 'searchable(externalId)'],
|
|
335
335
|
ranking: ['asc(order)'],
|
|
336
336
|
maxValuesPerFacet: 1000,
|
|
337
337
|
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: {
|