@placeshakr/config 10.19.6-alpha.3 → 10.19.9-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/dist/config.cjs.development.js +146 -111
- 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 +146 -111
- 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 +90 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +16 -4
- 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 +122 -22
|
@@ -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)', 'margin.id'],
|
|
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
|
|
@@ -340,7 +340,7 @@ var productionEnvironment = {
|
|
|
340
340
|
},
|
|
341
341
|
projects: {
|
|
342
342
|
searchableAttributes: ['name', 'address', 'description', 'price.total', 'client.displayName', 'client.email', 'client.address', 'client.phone.mobile', 'pro.displayName', 'pro.email', 'pro.phone.mobile', 'agents.displayName', 'agents.email', 'agents.phone.mobile', 'sellers.displayName', 'sellers.email', 'sellers.phone.mobile', 'provider.name', 'status'],
|
|
343
|
-
attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(status)', 'client.displayName', 'searchable(client.email)', 'agents.userId', 'searchable(agents.displayName)', 'searchable(agents.email)', 'searchable(pro.userId)', 'searchable(pro.displayName)', 'searchable(pro.email)', 'searchable(sellers.userId)', 'searchable(sellers.displayName)', 'searchable(sellers.email)', 'searchable(provider.id)', 'searchable(provider.name)', 'searchable(category)', 'searchable(agentManager)', 'searchable(sellerManager)', 'searchable(scope)'],
|
|
343
|
+
attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(status)', 'client.displayName', 'searchable(client.email)', 'agents.userId', 'searchable(agents.displayName)', 'searchable(agents.email)', 'searchable(pro.userId)', 'searchable(pro.displayName)', 'searchable(pro.email)', 'searchable(sellers.userId)', 'searchable(sellers.displayName)', 'searchable(sellers.email)', 'searchable(provider.id)', 'searchable(provider.name)', 'searchable(category)', 'searchable(agentManager)', 'searchable(agentReference)', 'searchable(sellerManager)', 'searchable(sellerReference)', 'searchable(scope)'],
|
|
344
344
|
ranking: ['desc(updatedAt)'],
|
|
345
345
|
maxValuesPerFacet: 1000,
|
|
346
346
|
maxFacetHits: 100
|
|
@@ -361,14 +361,14 @@ var productionEnvironment = {
|
|
|
361
361
|
},
|
|
362
362
|
plans: {
|
|
363
363
|
searchableAttributes: ['name', 'description'],
|
|
364
|
-
attributesForFaceting: ['projectId', 'searchable(scope)', 'searchable(visibleByPro)'],
|
|
364
|
+
attributesForFaceting: ['projectId', 'pdf_generated', 'searchable(scope)', 'searchable(visibleByPro)'],
|
|
365
365
|
ranking: ['desc(updatedAt)'],
|
|
366
366
|
maxValuesPerFacet: 1000,
|
|
367
367
|
maxFacetHits: 100
|
|
368
368
|
},
|
|
369
369
|
devis: {
|
|
370
370
|
searchableAttributes: ['name', 'status'],
|
|
371
|
-
attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
|
|
371
|
+
attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)', 'pdf_generated'],
|
|
372
372
|
ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
|
|
373
373
|
maxValuesPerFacet: 1000,
|
|
374
374
|
maxFacetHits: 100
|
|
@@ -382,7 +382,7 @@ var productionEnvironment = {
|
|
|
382
382
|
},
|
|
383
383
|
events: {
|
|
384
384
|
searchableAttributes: ['title', 'type'],
|
|
385
|
-
attributesForFaceting: ['type', 'start', 'end', 'owner', 'projectId', 'searchable(scope)'],
|
|
385
|
+
attributesForFaceting: ['type', 'searchable(start)', 'searchable(end)', 'owner', 'projectId', 'searchable(scope)'],
|
|
386
386
|
ranking: ['desc(start)'],
|
|
387
387
|
maxValuesPerFacet: 1000,
|
|
388
388
|
maxFacetHits: 100
|
|
@@ -428,7 +428,7 @@ var productionEnvironment = {
|
|
|
428
428
|
},
|
|
429
429
|
bills: {
|
|
430
430
|
searchableAttributes: ['entity', 'type', 'status', 'subType', 'reference'],
|
|
431
|
-
attributesForFaceting: ['entity', 'projectId', 'searchable(type)', 'searchable(subType)', 'searchable(status)', 'searchable(scope)'],
|
|
431
|
+
attributesForFaceting: ['entity', 'projectId', 'pdf_generated', 'has_files', 'searchable(type)', 'searchable(subType)', 'searchable(status)', 'searchable(scope)'],
|
|
432
432
|
ranking: ['desc(referenceNumber)'],
|
|
433
433
|
maxValuesPerFacet: 1000,
|
|
434
434
|
maxFacetHits: 100
|
|
@@ -503,7 +503,7 @@ var productionEnvironment = {
|
|
|
503
503
|
},
|
|
504
504
|
receptionVouchers: {
|
|
505
505
|
searchableAttributes: ['status'],
|
|
506
|
-
attributesForFaceting: ['projectId', 'searchable(status)', 'searchable(scope)'],
|
|
506
|
+
attributesForFaceting: ['projectId', 'has_files', 'searchable(status)', 'searchable(scope)'],
|
|
507
507
|
maxValuesPerFacet: 1000,
|
|
508
508
|
maxFacetHits: 100
|
|
509
509
|
},
|
|
@@ -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: {
|
|
@@ -1851,6 +1875,12 @@ var HistoryActionEnum;
|
|
|
1851
1875
|
HistoryActionEnum["DEVIS_APPROVED"] = "DEVIS_APPROVED";
|
|
1852
1876
|
HistoryActionEnum["DEVIS_SENT"] = "DEVIS_SENT";
|
|
1853
1877
|
HistoryActionEnum["DEVIS_SIGNED"] = "DEVIS_SIGNED";
|
|
1878
|
+
HistoryActionEnum["CREATE_DOCUMENT"] = "CREATE_DOCUMENT";
|
|
1879
|
+
HistoryActionEnum["CREATE_MEDIA"] = "CREATE_MEDIA";
|
|
1880
|
+
HistoryActionEnum["CREATE_EVENT"] = "CREATE_EVENT";
|
|
1881
|
+
HistoryActionEnum["CREATE_PLAN"] = "CREATE_PLAN";
|
|
1882
|
+
HistoryActionEnum["VALIDATE_PLAN"] = "VALIDATE_PLAN";
|
|
1883
|
+
HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
|
|
1854
1884
|
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
1855
1885
|
|
|
1856
1886
|
var HistoryEntityType;
|
|
@@ -1859,6 +1889,11 @@ var HistoryEntityType;
|
|
|
1859
1889
|
HistoryEntityType["PROJECT"] = "PROJECT";
|
|
1860
1890
|
HistoryEntityType["NOTE"] = "NOTE";
|
|
1861
1891
|
HistoryEntityType["RECEPTION_VOUCHER"] = "RECEPTION_VOUCHER";
|
|
1892
|
+
HistoryEntityType["DOCUMENT"] = "DOCUMENT";
|
|
1893
|
+
HistoryEntityType["PLAN"] = "PLAN";
|
|
1894
|
+
HistoryEntityType["EVENT"] = "EVENT";
|
|
1895
|
+
HistoryEntityType["MEDIA"] = "MEDIA";
|
|
1896
|
+
HistoryEntityType["DEVIS"] = "DEVIS";
|
|
1862
1897
|
})(HistoryEntityType || (HistoryEntityType = {}));
|
|
1863
1898
|
|
|
1864
1899
|
var CategoryEntityEnum;
|