@placeshakr/config 10.20.4 → 10.20.5-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 +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 +141 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +49 -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 +156 -2
package/dist/config.esm.js
CHANGED
|
@@ -168,7 +168,12 @@ var productionEnvironment = {
|
|
|
168
168
|
configurations: 'enterprises/{enterpriseId}/configurations',
|
|
169
169
|
logs: 'enterprises/{enterpriseId}/logs',
|
|
170
170
|
systemVersions: 'systemVersions',
|
|
171
|
-
userProfiles: 'users/{userId}/profiles'
|
|
171
|
+
userProfiles: 'users/{userId}/profiles',
|
|
172
|
+
evaluationsConfig: 'enterprises/{enterpriseId}/evaluationsConfig',
|
|
173
|
+
evaluations: 'enterprises/{enterpriseId}/evaluations',
|
|
174
|
+
devisCandidates: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates',
|
|
175
|
+
workOrders: 'enterprises/{enterpriseId}/workOrders',
|
|
176
|
+
candidatures: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures'
|
|
172
177
|
},
|
|
173
178
|
docs: {
|
|
174
179
|
user: 'users/{userId}',
|
|
@@ -213,7 +218,12 @@ var productionEnvironment = {
|
|
|
213
218
|
enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
|
|
214
219
|
configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}',
|
|
215
220
|
log: 'enterprises/{enterpriseId}/logs/{logId}',
|
|
216
|
-
systemVersion: 'systemVersions/{systemVersionId}'
|
|
221
|
+
systemVersion: 'systemVersions/{systemVersionId}',
|
|
222
|
+
evaluationConfig: 'enterprises/{enterpriseId}/evaluationsConfig/{evaluationConfigId}',
|
|
223
|
+
evaluation: 'enterprises/{enterpriseId}/evaluations/{evaluationId}',
|
|
224
|
+
devisCandidate: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates/{devisCandidateId}',
|
|
225
|
+
workOrder: 'enterprises/{enterpriseId}/workOrders/{workOrderId}',
|
|
226
|
+
candidature: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures/{candidatureId}'
|
|
217
227
|
},
|
|
218
228
|
indexes: {
|
|
219
229
|
// users
|
|
@@ -234,6 +244,7 @@ var productionEnvironment = {
|
|
|
234
244
|
operationsMaterials: 'operations-materials',
|
|
235
245
|
estimations: 'estimations',
|
|
236
246
|
nomenclatures: 'nomenclatures',
|
|
247
|
+
workOrders: 'workOrders',
|
|
237
248
|
// used only for managment
|
|
238
249
|
systemMaterials: 'system-materials',
|
|
239
250
|
systemOperations: 'system-operations',
|
|
@@ -316,11 +327,18 @@ var productionEnvironment = {
|
|
|
316
327
|
},
|
|
317
328
|
projects: {
|
|
318
329
|
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'],
|
|
319
|
-
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)'],
|
|
330
|
+
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)'],
|
|
320
331
|
ranking: ['attribute', 'desc(updatedAt)', 'proximity', 'typo', 'geo', 'words', 'filters', 'exact'],
|
|
321
332
|
maxValuesPerFacet: 1000,
|
|
322
333
|
maxFacetHits: 100
|
|
323
334
|
},
|
|
335
|
+
workOrders: {
|
|
336
|
+
searchableAttributes: ['reference', 'address', 'estimatedPrice', 'owner.displayName'],
|
|
337
|
+
attributesForFaceting: ['owner', 'searchable(scope)', 'searchable(priority)', 'searchable(status)', 'searchable(owner.userId)'],
|
|
338
|
+
ranking: ['desc(createdAt)'],
|
|
339
|
+
maxValuesPerFacet: 1000,
|
|
340
|
+
maxFacetHits: 100
|
|
341
|
+
},
|
|
324
342
|
medias: {
|
|
325
343
|
searchableAttributes: ['name'],
|
|
326
344
|
attributesForFaceting: ['owner', 'searchable(tags)', 'projectId', 'searchable(scope)', 'createdDate'],
|
|
@@ -411,6 +429,13 @@ var productionEnvironment = {
|
|
|
411
429
|
ranking: ['asc(name)'],
|
|
412
430
|
maxValuesPerFacet: 1000,
|
|
413
431
|
maxFacetHits: 100
|
|
432
|
+
},
|
|
433
|
+
workOrder: {
|
|
434
|
+
searchableAttributes: ['reference'],
|
|
435
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(priority)', 'searchable(candidates)'],
|
|
436
|
+
ranking: ['asc(createdAt)'],
|
|
437
|
+
maxValuesPerFacet: 1000,
|
|
438
|
+
maxFacetHits: 100
|
|
414
439
|
}
|
|
415
440
|
}
|
|
416
441
|
};
|
|
@@ -467,6 +492,7 @@ var test = function test(base) {
|
|
|
467
492
|
operationsCatalogs: 'operations-catalogs',
|
|
468
493
|
nomenclatures: 'nomenclatures',
|
|
469
494
|
operationsGroups: 'operations-groups',
|
|
495
|
+
workOrders: 'work-orders',
|
|
470
496
|
// used only for managment
|
|
471
497
|
systemMaterials: 'system-materials',
|
|
472
498
|
systemOperations: 'system-operations',
|
|
@@ -506,6 +532,7 @@ var emulator = function emulator(base) {
|
|
|
506
532
|
operationsCatalogs: 'operations-catalogs',
|
|
507
533
|
nomenclatures: 'nomenclatures',
|
|
508
534
|
operationsGroups: 'operations-groups',
|
|
535
|
+
workOrders: 'work-orders',
|
|
509
536
|
// used only for managment
|
|
510
537
|
systemMaterials: 'system-materials',
|
|
511
538
|
systemOperations: 'system-operations',
|
|
@@ -607,7 +634,12 @@ var helpers = {
|
|
|
607
634
|
enterpriseMedias: /*#__PURE__*/FactoryCreateFunction(),
|
|
608
635
|
configurations: /*#__PURE__*/FactoryCreateFunction(),
|
|
609
636
|
systemVersions: /*#__PURE__*/FactoryCreateFunction(),
|
|
610
|
-
|
|
637
|
+
evaluationConfig: /*#__PURE__*/FactoryCreateFunction(),
|
|
638
|
+
evaluations: /*#__PURE__*/FactoryCreateFunction(),
|
|
639
|
+
indexes: /*#__PURE__*/FactoryCreateFunction(),
|
|
640
|
+
devisCandidates: /*#__PURE__*/FactoryCreateFunction(),
|
|
641
|
+
workOrders: /*#__PURE__*/FactoryCreateFunction(),
|
|
642
|
+
candidatures: /*#__PURE__*/FactoryCreateFunction()
|
|
611
643
|
};
|
|
612
644
|
|
|
613
645
|
/**
|
|
@@ -1217,6 +1249,11 @@ var ROLE;
|
|
|
1217
1249
|
ROLE["OWNER"] = "owner";
|
|
1218
1250
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
1219
1251
|
})(ROLE || (ROLE = {}));
|
|
1252
|
+
var MarketplaceStatus;
|
|
1253
|
+
(function (MarketplaceStatus) {
|
|
1254
|
+
MarketplaceStatus["OPEN"] = "OPEN";
|
|
1255
|
+
MarketplaceStatus["CLOSE"] = "CLOSE";
|
|
1256
|
+
})(MarketplaceStatus || (MarketplaceStatus = {}));
|
|
1220
1257
|
var VisitReportStatus;
|
|
1221
1258
|
(function (VisitReportStatus) {
|
|
1222
1259
|
VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
@@ -1602,6 +1639,7 @@ var EmailTemplate;
|
|
|
1602
1639
|
EmailTemplate["MEDIAS"] = "medias";
|
|
1603
1640
|
EmailTemplate["EXPORT_LOGS"] = "export-logs";
|
|
1604
1641
|
EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
|
|
1642
|
+
EmailTemplate["WORK_ORDER_APPROVED"] = "work-order-approved";
|
|
1605
1643
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
1606
1644
|
var DevisPdfType;
|
|
1607
1645
|
(function (DevisPdfType) {
|
|
@@ -1701,6 +1739,7 @@ var NomenclaturesIdentifier;
|
|
|
1701
1739
|
NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
|
|
1702
1740
|
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1703
1741
|
NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
|
|
1742
|
+
NomenclaturesIdentifier["PROJECTS_PRIORITY"] = "PROJECTS_PRIORITY";
|
|
1704
1743
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1705
1744
|
var BarCodeEnum;
|
|
1706
1745
|
(function (BarCodeEnum) {
|
|
@@ -1785,6 +1824,24 @@ var BillIssuedReasons;
|
|
|
1785
1824
|
BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
|
|
1786
1825
|
BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
|
|
1787
1826
|
})(BillIssuedReasons || (BillIssuedReasons = {}));
|
|
1827
|
+
var EvaluationConfigIdentifier;
|
|
1828
|
+
(function (EvaluationConfigIdentifier) {
|
|
1829
|
+
EvaluationConfigIdentifier["PRO"] = "PRO";
|
|
1830
|
+
})(EvaluationConfigIdentifier || (EvaluationConfigIdentifier = {}));
|
|
1831
|
+
var WorkOrderStatusEnum;
|
|
1832
|
+
(function (WorkOrderStatusEnum) {
|
|
1833
|
+
WorkOrderStatusEnum["CREATED"] = "CREATED";
|
|
1834
|
+
WorkOrderStatusEnum["TO_VALIDATE"] = "TO_VALIDATE";
|
|
1835
|
+
WorkOrderStatusEnum["APPROVED"] = "APPROVED";
|
|
1836
|
+
WorkOrderStatusEnum["REFUSED"] = "REFUSED";
|
|
1837
|
+
})(WorkOrderStatusEnum || (WorkOrderStatusEnum = {}));
|
|
1838
|
+
var WorkOrderPriceRange;
|
|
1839
|
+
(function (WorkOrderPriceRange) {
|
|
1840
|
+
WorkOrderPriceRange["LESS_2500"] = "LESS_2500";
|
|
1841
|
+
WorkOrderPriceRange["MORE_2500_LESS_10000"] = "MORE_2500_LESS_10000";
|
|
1842
|
+
WorkOrderPriceRange["MORE_10000_LESS_40000"] = "MORE_10000_LESS_40000";
|
|
1843
|
+
WorkOrderPriceRange["MORE_40000"] = "MORE_40000";
|
|
1844
|
+
})(WorkOrderPriceRange || (WorkOrderPriceRange = {}));
|
|
1788
1845
|
|
|
1789
1846
|
var types = {
|
|
1790
1847
|
__proto__: null,
|
|
@@ -1824,12 +1881,14 @@ var types = {
|
|
|
1824
1881
|
get EstimationOriginEnum () { return EstimationOriginEnum; },
|
|
1825
1882
|
get EstimationStatusEnum () { return EstimationStatusEnum; },
|
|
1826
1883
|
get EstimationTypeEnum () { return EstimationTypeEnum; },
|
|
1884
|
+
get EvaluationConfigIdentifier () { return EvaluationConfigIdentifier; },
|
|
1827
1885
|
get EventsTypeEnum () { return EventsTypeEnum; },
|
|
1828
1886
|
get HistoryActionEnum () { return HistoryActionEnum; },
|
|
1829
1887
|
get HistoryEntityType () { return HistoryEntityType; },
|
|
1830
1888
|
get ItemResponsible () { return ItemResponsible; },
|
|
1831
1889
|
get LateInterest () { return LateInterest; },
|
|
1832
1890
|
get LogsIdentifier () { return LogsIdentifier; },
|
|
1891
|
+
get MarketplaceStatus () { return MarketplaceStatus; },
|
|
1833
1892
|
get MaterialsProviderType () { return MaterialsProviderType; },
|
|
1834
1893
|
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
1835
1894
|
get NotesType () { return NotesType; },
|
|
@@ -1855,7 +1914,9 @@ var types = {
|
|
|
1855
1914
|
get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
|
|
1856
1915
|
get SendgridTemplates () { return SendgridTemplates; },
|
|
1857
1916
|
get TermsOfPayment () { return TermsOfPayment; },
|
|
1858
|
-
get VisitReportStatus () { return VisitReportStatus; }
|
|
1917
|
+
get VisitReportStatus () { return VisitReportStatus; },
|
|
1918
|
+
get WorkOrderPriceRange () { return WorkOrderPriceRange; },
|
|
1919
|
+
get WorkOrderStatusEnum () { return WorkOrderStatusEnum; }
|
|
1859
1920
|
};
|
|
1860
1921
|
|
|
1861
1922
|
function isBuffer(obj) {
|