@placeshakr/config 10.20.4 → 10.20.5-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 +66 -5
- 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 +66 -5
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/decorators.d.ts.map +1 -1
- package/dist/environment/types.d.ts +11 -0
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/types.d.ts +143 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +50 -0
- package/src/environment/decorators.ts +4 -2
- package/src/environment/types.ts +11 -0
- package/src/helpers/index.ts +10 -0
- package/src/types.ts +158 -2
|
@@ -172,7 +172,12 @@ var productionEnvironment = {
|
|
|
172
172
|
configurations: 'enterprises/{enterpriseId}/configurations',
|
|
173
173
|
logs: 'enterprises/{enterpriseId}/logs',
|
|
174
174
|
systemVersions: 'systemVersions',
|
|
175
|
-
userProfiles: 'users/{userId}/profiles'
|
|
175
|
+
userProfiles: 'users/{userId}/profiles',
|
|
176
|
+
evaluationsConfig: 'enterprises/{enterpriseId}/evaluationsConfig',
|
|
177
|
+
evaluations: 'enterprises/{enterpriseId}/evaluations',
|
|
178
|
+
devisCandidates: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates',
|
|
179
|
+
workOrders: 'enterprises/{enterpriseId}/workOrders',
|
|
180
|
+
candidatures: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures'
|
|
176
181
|
},
|
|
177
182
|
docs: {
|
|
178
183
|
user: 'users/{userId}',
|
|
@@ -217,7 +222,12 @@ var productionEnvironment = {
|
|
|
217
222
|
enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
|
|
218
223
|
configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}',
|
|
219
224
|
log: 'enterprises/{enterpriseId}/logs/{logId}',
|
|
220
|
-
systemVersion: 'systemVersions/{systemVersionId}'
|
|
225
|
+
systemVersion: 'systemVersions/{systemVersionId}',
|
|
226
|
+
evaluationConfig: 'enterprises/{enterpriseId}/evaluationsConfig/{evaluationConfigId}',
|
|
227
|
+
evaluation: 'enterprises/{enterpriseId}/evaluations/{evaluationId}',
|
|
228
|
+
devisCandidate: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates/{devisCandidateId}',
|
|
229
|
+
workOrder: 'enterprises/{enterpriseId}/workOrders/{workOrderId}',
|
|
230
|
+
candidature: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures/{candidatureId}'
|
|
221
231
|
},
|
|
222
232
|
indexes: {
|
|
223
233
|
// users
|
|
@@ -238,6 +248,7 @@ var productionEnvironment = {
|
|
|
238
248
|
operationsMaterials: 'operations-materials',
|
|
239
249
|
estimations: 'estimations',
|
|
240
250
|
nomenclatures: 'nomenclatures',
|
|
251
|
+
workOrders: 'workOrders',
|
|
241
252
|
// used only for managment
|
|
242
253
|
systemMaterials: 'system-materials',
|
|
243
254
|
systemOperations: 'system-operations',
|
|
@@ -320,11 +331,18 @@ var productionEnvironment = {
|
|
|
320
331
|
},
|
|
321
332
|
projects: {
|
|
322
333
|
searchableAttributes: ['name', 'address', 'description', 'price.total', 'client.displayName', 'client.email', 'client.address', 'client.phone.number', 'pro.displayName', 'pro.email', 'agents.displayName', 'agents.email', 'sellers.displayName', 'sellers.email', 'provider.name', 'status'],
|
|
323
|
-
attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(status)', 'client.userId', 'searchable(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)'],
|
|
334
|
+
attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(priority)', 'searchable(status)', 'client.userId', 'searchable(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)', 'searchable(marketplaceStatus)', 'searchable(candidates)'],
|
|
324
335
|
ranking: ['attribute', 'desc(updatedAt)', 'proximity', 'typo', 'geo', 'words', 'filters', 'exact'],
|
|
325
336
|
maxValuesPerFacet: 1000,
|
|
326
337
|
maxFacetHits: 100
|
|
327
338
|
},
|
|
339
|
+
workOrders: {
|
|
340
|
+
searchableAttributes: ['reference', 'address', 'estimatedPrice', 'owner.displayName'],
|
|
341
|
+
attributesForFaceting: ['owner', 'searchable(scope)', 'searchable(priority)', 'searchable(status)', 'searchable(owner.userId)'],
|
|
342
|
+
ranking: ['desc(createdAt)'],
|
|
343
|
+
maxValuesPerFacet: 1000,
|
|
344
|
+
maxFacetHits: 100
|
|
345
|
+
},
|
|
328
346
|
medias: {
|
|
329
347
|
searchableAttributes: ['name'],
|
|
330
348
|
attributesForFaceting: ['owner', 'searchable(tags)', 'projectId', 'searchable(scope)', 'createdDate'],
|
|
@@ -415,6 +433,13 @@ var productionEnvironment = {
|
|
|
415
433
|
ranking: ['asc(name)'],
|
|
416
434
|
maxValuesPerFacet: 1000,
|
|
417
435
|
maxFacetHits: 100
|
|
436
|
+
},
|
|
437
|
+
workOrder: {
|
|
438
|
+
searchableAttributes: ['reference'],
|
|
439
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(priority)', 'searchable(candidates)'],
|
|
440
|
+
ranking: ['asc(createdAt)'],
|
|
441
|
+
maxValuesPerFacet: 1000,
|
|
442
|
+
maxFacetHits: 100
|
|
418
443
|
}
|
|
419
444
|
}
|
|
420
445
|
};
|
|
@@ -471,6 +496,7 @@ var test = function test(base) {
|
|
|
471
496
|
operationsCatalogs: 'operations-catalogs',
|
|
472
497
|
nomenclatures: 'nomenclatures',
|
|
473
498
|
operationsGroups: 'operations-groups',
|
|
499
|
+
workOrders: 'work-orders',
|
|
474
500
|
// used only for managment
|
|
475
501
|
systemMaterials: 'system-materials',
|
|
476
502
|
systemOperations: 'system-operations',
|
|
@@ -510,6 +536,7 @@ var emulator = function emulator(base) {
|
|
|
510
536
|
operationsCatalogs: 'operations-catalogs',
|
|
511
537
|
nomenclatures: 'nomenclatures',
|
|
512
538
|
operationsGroups: 'operations-groups',
|
|
539
|
+
workOrders: 'work-orders',
|
|
513
540
|
// used only for managment
|
|
514
541
|
systemMaterials: 'system-materials',
|
|
515
542
|
systemOperations: 'system-operations',
|
|
@@ -611,7 +638,12 @@ var helpers = {
|
|
|
611
638
|
enterpriseMedias: /*#__PURE__*/FactoryCreateFunction(),
|
|
612
639
|
configurations: /*#__PURE__*/FactoryCreateFunction(),
|
|
613
640
|
systemVersions: /*#__PURE__*/FactoryCreateFunction(),
|
|
614
|
-
|
|
641
|
+
evaluationConfig: /*#__PURE__*/FactoryCreateFunction(),
|
|
642
|
+
evaluations: /*#__PURE__*/FactoryCreateFunction(),
|
|
643
|
+
indexes: /*#__PURE__*/FactoryCreateFunction(),
|
|
644
|
+
devisCandidates: /*#__PURE__*/FactoryCreateFunction(),
|
|
645
|
+
workOrders: /*#__PURE__*/FactoryCreateFunction(),
|
|
646
|
+
candidatures: /*#__PURE__*/FactoryCreateFunction()
|
|
615
647
|
};
|
|
616
648
|
|
|
617
649
|
/**
|
|
@@ -1221,6 +1253,11 @@ var ROLE;
|
|
|
1221
1253
|
ROLE["OWNER"] = "owner";
|
|
1222
1254
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
1223
1255
|
})(ROLE || (ROLE = {}));
|
|
1256
|
+
var MarketplaceStatus;
|
|
1257
|
+
(function (MarketplaceStatus) {
|
|
1258
|
+
MarketplaceStatus["OPEN"] = "OPEN";
|
|
1259
|
+
MarketplaceStatus["CLOSE"] = "CLOSE";
|
|
1260
|
+
})(MarketplaceStatus || (MarketplaceStatus = {}));
|
|
1224
1261
|
var VisitReportStatus;
|
|
1225
1262
|
(function (VisitReportStatus) {
|
|
1226
1263
|
VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
@@ -1606,6 +1643,7 @@ var EmailTemplate;
|
|
|
1606
1643
|
EmailTemplate["MEDIAS"] = "medias";
|
|
1607
1644
|
EmailTemplate["EXPORT_LOGS"] = "export-logs";
|
|
1608
1645
|
EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
|
|
1646
|
+
EmailTemplate["WORK_ORDER_APPROVED"] = "work-order-approved";
|
|
1609
1647
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
1610
1648
|
var DevisPdfType;
|
|
1611
1649
|
(function (DevisPdfType) {
|
|
@@ -1705,6 +1743,7 @@ var NomenclaturesIdentifier;
|
|
|
1705
1743
|
NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
|
|
1706
1744
|
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1707
1745
|
NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
|
|
1746
|
+
NomenclaturesIdentifier["PROJECTS_PRIORITY"] = "PROJECTS_PRIORITY";
|
|
1708
1747
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1709
1748
|
var BarCodeEnum;
|
|
1710
1749
|
(function (BarCodeEnum) {
|
|
@@ -1789,6 +1828,24 @@ var BillIssuedReasons;
|
|
|
1789
1828
|
BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
|
|
1790
1829
|
BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
|
|
1791
1830
|
})(BillIssuedReasons || (BillIssuedReasons = {}));
|
|
1831
|
+
var EvaluationConfigIdentifier;
|
|
1832
|
+
(function (EvaluationConfigIdentifier) {
|
|
1833
|
+
EvaluationConfigIdentifier["PRO"] = "PRO";
|
|
1834
|
+
})(EvaluationConfigIdentifier || (EvaluationConfigIdentifier = {}));
|
|
1835
|
+
var WorkOrderStatusEnum;
|
|
1836
|
+
(function (WorkOrderStatusEnum) {
|
|
1837
|
+
WorkOrderStatusEnum["CREATED"] = "CREATED";
|
|
1838
|
+
WorkOrderStatusEnum["TO_VALIDATE"] = "TO_VALIDATE";
|
|
1839
|
+
WorkOrderStatusEnum["APPROVED"] = "APPROVED";
|
|
1840
|
+
WorkOrderStatusEnum["REFUSED"] = "REFUSED";
|
|
1841
|
+
})(WorkOrderStatusEnum || (WorkOrderStatusEnum = {}));
|
|
1842
|
+
var WorkOrderPriceRange;
|
|
1843
|
+
(function (WorkOrderPriceRange) {
|
|
1844
|
+
WorkOrderPriceRange["LESS_2500"] = "LESS_2500";
|
|
1845
|
+
WorkOrderPriceRange["MORE_2500_LESS_10000"] = "MORE_2500_LESS_10000";
|
|
1846
|
+
WorkOrderPriceRange["MORE_10000_LESS_40000"] = "MORE_10000_LESS_40000";
|
|
1847
|
+
WorkOrderPriceRange["MORE_40000"] = "MORE_40000";
|
|
1848
|
+
})(WorkOrderPriceRange || (WorkOrderPriceRange = {}));
|
|
1792
1849
|
|
|
1793
1850
|
var types = {
|
|
1794
1851
|
__proto__: null,
|
|
@@ -1828,12 +1885,14 @@ var types = {
|
|
|
1828
1885
|
get EstimationOriginEnum () { return EstimationOriginEnum; },
|
|
1829
1886
|
get EstimationStatusEnum () { return EstimationStatusEnum; },
|
|
1830
1887
|
get EstimationTypeEnum () { return EstimationTypeEnum; },
|
|
1888
|
+
get EvaluationConfigIdentifier () { return EvaluationConfigIdentifier; },
|
|
1831
1889
|
get EventsTypeEnum () { return EventsTypeEnum; },
|
|
1832
1890
|
get HistoryActionEnum () { return HistoryActionEnum; },
|
|
1833
1891
|
get HistoryEntityType () { return HistoryEntityType; },
|
|
1834
1892
|
get ItemResponsible () { return ItemResponsible; },
|
|
1835
1893
|
get LateInterest () { return LateInterest; },
|
|
1836
1894
|
get LogsIdentifier () { return LogsIdentifier; },
|
|
1895
|
+
get MarketplaceStatus () { return MarketplaceStatus; },
|
|
1837
1896
|
get MaterialsProviderType () { return MaterialsProviderType; },
|
|
1838
1897
|
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
1839
1898
|
get NotesType () { return NotesType; },
|
|
@@ -1859,7 +1918,9 @@ var types = {
|
|
|
1859
1918
|
get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
|
|
1860
1919
|
get SendgridTemplates () { return SendgridTemplates; },
|
|
1861
1920
|
get TermsOfPayment () { return TermsOfPayment; },
|
|
1862
|
-
get VisitReportStatus () { return VisitReportStatus; }
|
|
1921
|
+
get VisitReportStatus () { return VisitReportStatus; },
|
|
1922
|
+
get WorkOrderPriceRange () { return WorkOrderPriceRange; },
|
|
1923
|
+
get WorkOrderStatusEnum () { return WorkOrderStatusEnum; }
|
|
1863
1924
|
};
|
|
1864
1925
|
|
|
1865
1926
|
function isBuffer(obj) {
|