@psmarketplace/config 10.23.1 → 11.0.0-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/environment/base.js +375 -370
- package/dist/environment/base.js.map +1 -1
- package/dist/helpers/index.js +2 -0
- package/dist/helpers/index.js.map +1 -1
- package/dist/types/environment/base.d.ts +1 -1
- package/dist/types/environment/base.d.ts.map +1 -1
- package/dist/types/environment/types.d.ts +3 -0
- package/dist/types/environment/types.d.ts.map +1 -1
- package/dist/types/helpers/index.d.ts +3 -1
- package/dist/types/helpers/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +112 -4
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types.js +23 -2
- package/dist/types.js.map +1 -1
- package/package.json +5 -4
- package/src/environment/base.ts +379 -371
- package/src/environment/types.ts +3 -0
- package/src/helpers/index.ts +5 -1
- package/src/types.ts +128 -2
package/dist/environment/base.js
CHANGED
|
@@ -7,254 +7,257 @@ const productionEnvironment = {
|
|
|
7
7
|
stripe: {},
|
|
8
8
|
},
|
|
9
9
|
isTest: false,
|
|
10
|
-
name:
|
|
10
|
+
name: "production",
|
|
11
11
|
security: {
|
|
12
12
|
search: {
|
|
13
13
|
// this field is used to set the scope of the record (the enterprise owner of record)
|
|
14
|
-
scopeField:
|
|
15
|
-
visibleBy:
|
|
16
|
-
ownerField:
|
|
14
|
+
scopeField: "searchable(scope)",
|
|
15
|
+
visibleBy: "visibility",
|
|
16
|
+
ownerField: "owner",
|
|
17
17
|
},
|
|
18
18
|
claims: {
|
|
19
|
-
enterprise:
|
|
20
|
-
role:
|
|
21
|
-
secureSearchApiKey:
|
|
19
|
+
enterprise: "enterprise",
|
|
20
|
+
role: "role",
|
|
21
|
+
secureSearchApiKey: "searchKey",
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
realtime: {
|
|
25
|
-
default:
|
|
26
|
-
projects:
|
|
25
|
+
default: "enterprises/{enterpriseId}/indexes/{indexName}",
|
|
26
|
+
projects: "enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}",
|
|
27
27
|
},
|
|
28
28
|
schema: {
|
|
29
29
|
collections: {
|
|
30
|
-
users:
|
|
31
|
-
enterprises:
|
|
30
|
+
users: "users",
|
|
31
|
+
enterprises: "enterprises",
|
|
32
32
|
// tslint:disable-next-line: object-literal-sort-keys
|
|
33
|
-
billing:
|
|
34
|
-
projects:
|
|
35
|
-
medias:
|
|
36
|
-
events:
|
|
37
|
-
notes:
|
|
38
|
-
visitReports:
|
|
39
|
-
documents:
|
|
40
|
-
devis:
|
|
41
|
-
plans:
|
|
42
|
-
downPayments:
|
|
43
|
-
providers:
|
|
44
|
-
statuses:
|
|
45
|
-
orders:
|
|
46
|
-
bills:
|
|
47
|
-
counters:
|
|
48
|
-
invoices:
|
|
49
|
-
materialsProvider:
|
|
50
|
-
materials:
|
|
51
|
-
invitations:
|
|
52
|
-
devisTemplates:
|
|
53
|
-
estimations:
|
|
54
|
-
userNotifications:
|
|
55
|
-
histories:
|
|
56
|
-
receptionVouchers:
|
|
57
|
-
indexes:
|
|
58
|
-
notifications:
|
|
59
|
-
nomenclatures:
|
|
60
|
-
categories:
|
|
61
|
-
operationsCatalogs:
|
|
62
|
-
operationsGroups:
|
|
63
|
-
operations:
|
|
64
|
-
operationMaterials:
|
|
65
|
-
devisVersions:
|
|
66
|
-
enterpriseDocuments:
|
|
67
|
-
enterpriseMedias:
|
|
68
|
-
configurations:
|
|
69
|
-
logs:
|
|
70
|
-
systemVersions:
|
|
71
|
-
userProfiles:
|
|
72
|
-
evaluationsConfig:
|
|
73
|
-
evaluations:
|
|
74
|
-
devisCandidates:
|
|
75
|
-
workOrders:
|
|
76
|
-
candidatures:
|
|
77
|
-
serviceOrders:
|
|
78
|
-
marketplaceOrders:
|
|
79
|
-
marketplaceNotifications:
|
|
33
|
+
billing: "enterprises/{enterpriseId}/billing",
|
|
34
|
+
projects: "enterprises/{enterpriseId}/projects",
|
|
35
|
+
medias: "enterprises/{enterpriseId}/projects/{projectId}/medias",
|
|
36
|
+
events: "enterprises/{enterpriseId}/projects/{projectId}/events",
|
|
37
|
+
notes: "enterprises/{enterpriseId}/projects/{projectId}/notes",
|
|
38
|
+
visitReports: "enterprises/{enterpriseId}/projects/{projectId}/visitReports",
|
|
39
|
+
documents: "enterprises/{enterpriseId}/projects/{projectId}/documents",
|
|
40
|
+
devis: "enterprises/{enterpriseId}/projects/{projectId}/devis",
|
|
41
|
+
plans: "enterprises/{enterpriseId}/projects/{projectId}/plans",
|
|
42
|
+
downPayments: "enterprises/{enterpriseId}/projects/{projectId}/downPayments",
|
|
43
|
+
providers: "enterprises/{enterpriseId}/providers",
|
|
44
|
+
statuses: "enterprises/{enterpriseId}/statuses",
|
|
45
|
+
orders: "enterprises/{enterpriseId}/projects/{projectId}/orders",
|
|
46
|
+
bills: "enterprises/{enterpriseId}/projects/{projectId}/bills",
|
|
47
|
+
counters: "counters",
|
|
48
|
+
invoices: "enterprises/{enterpriseId}/invoices",
|
|
49
|
+
materialsProvider: "enterprises/{enterpriseId}/materialsProvider",
|
|
50
|
+
materials: "enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials",
|
|
51
|
+
invitations: "enterprises/{enterpriseId}/invitations",
|
|
52
|
+
devisTemplates: "enterprises/{enterpriseId}/devisTemplates",
|
|
53
|
+
estimations: "enterprises/{enterpriseId}/estimations",
|
|
54
|
+
userNotifications: "users/{userId}/profiles/{enterpriseId}/notifications",
|
|
55
|
+
histories: "enterprises/{enterpriseId}/histories",
|
|
56
|
+
receptionVouchers: "enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers",
|
|
57
|
+
indexes: "enterprises/{enterpriseId}/indexes",
|
|
58
|
+
notifications: "enterprises/{enterpriseId}/notifications",
|
|
59
|
+
nomenclatures: "enterprises/{enterpriseId}/nomenclatures",
|
|
60
|
+
categories: "enterprises/{enterpriseId}/categories",
|
|
61
|
+
operationsCatalogs: "enterprises/{enterpriseId}/operationsCatalogs",
|
|
62
|
+
operationsGroups: "enterprises/{enterpriseId}/operationsGroups",
|
|
63
|
+
operations: "enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations",
|
|
64
|
+
operationMaterials: "enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials",
|
|
65
|
+
devisVersions: "enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions",
|
|
66
|
+
enterpriseDocuments: "enterprises/{enterpriseId}/documents",
|
|
67
|
+
enterpriseMedias: "enterprises/{enterpriseId}/medias",
|
|
68
|
+
configurations: "enterprises/{enterpriseId}/configurations",
|
|
69
|
+
logs: "enterprises/{enterpriseId}/logs",
|
|
70
|
+
systemVersions: "systemVersions",
|
|
71
|
+
userProfiles: "users/{userId}/profiles",
|
|
72
|
+
evaluationsConfig: "enterprises/{enterpriseId}/evaluationsConfig",
|
|
73
|
+
evaluations: "enterprises/{enterpriseId}/evaluations",
|
|
74
|
+
devisCandidates: "enterprises/{enterpriseId}/projects/{projectId}/devisCandidates",
|
|
75
|
+
workOrders: "enterprises/{enterpriseId}/workOrders",
|
|
76
|
+
candidatures: "enterprises/{enterpriseId}/projects/{projectId}/candidatures",
|
|
77
|
+
serviceOrders: "enterprises/{enterpriseId}/projects/{projectId}/serviceOrders",
|
|
78
|
+
marketplaceOrders: "enterprises/{enterpriseId}/projects/{projectId}/marketplaceOrders",
|
|
79
|
+
marketplaceNotifications: "enterprises/{enterpriseId}/projects/{projectId}/marketplaceNotifications",
|
|
80
|
+
filesOfWorksExecuted: "enterprises/{enterpriseId}/projects/{projectId}/filesOfWorksExecuted",
|
|
80
81
|
},
|
|
81
82
|
docs: {
|
|
82
|
-
user:
|
|
83
|
-
userProfile:
|
|
84
|
-
billing:
|
|
85
|
-
enterprise:
|
|
86
|
-
global:
|
|
87
|
-
project:
|
|
88
|
-
medias:
|
|
89
|
-
events:
|
|
90
|
-
notes:
|
|
91
|
-
visitReports:
|
|
92
|
-
documents:
|
|
93
|
-
devis:
|
|
94
|
-
plans:
|
|
95
|
-
downPayments:
|
|
96
|
-
paymentMethods:
|
|
97
|
-
provider:
|
|
98
|
-
status:
|
|
99
|
-
orders:
|
|
100
|
-
bills:
|
|
101
|
-
indexes:
|
|
102
|
-
counter:
|
|
103
|
-
invoice:
|
|
104
|
-
materialsProvider:
|
|
105
|
-
material:
|
|
106
|
-
invitation:
|
|
107
|
-
devisTemplate:
|
|
108
|
-
estimation:
|
|
109
|
-
userNotification:
|
|
110
|
-
history:
|
|
111
|
-
receptionVouchers:
|
|
112
|
-
notification:
|
|
113
|
-
nomenclatures:
|
|
114
|
-
category:
|
|
115
|
-
operationsCatalogs:
|
|
116
|
-
operationsGroups:
|
|
117
|
-
operation:
|
|
118
|
-
operationMaterial:
|
|
119
|
-
devisVersion:
|
|
120
|
-
enterpriseDocument:
|
|
121
|
-
enterpriseMedia:
|
|
122
|
-
configuration:
|
|
123
|
-
log:
|
|
124
|
-
systemVersion:
|
|
125
|
-
evaluationConfig:
|
|
126
|
-
evaluation:
|
|
127
|
-
devisCandidate:
|
|
128
|
-
workOrder:
|
|
129
|
-
candidature:
|
|
130
|
-
serviceOrder:
|
|
131
|
-
marketplaceOrder:
|
|
132
|
-
marketplaceNotification:
|
|
83
|
+
user: "users/{userId}",
|
|
84
|
+
userProfile: "users/{userId}/profiles/{enterpriseId}",
|
|
85
|
+
billing: "enterprises/{enterpriseId}/billing/{billingId}",
|
|
86
|
+
enterprise: "enterprises/{enterpriseId}",
|
|
87
|
+
global: "global/stats",
|
|
88
|
+
project: "enterprises/{enterpriseId}/projects/{projectId}",
|
|
89
|
+
medias: "enterprises/{enterpriseId}/projects/{projectId}/medias/{mediaId}",
|
|
90
|
+
events: "enterprises/{enterpriseId}/projects/{projectId}/events/{eventId}",
|
|
91
|
+
notes: "enterprises/{enterpriseId}/projects/{projectId}/notes/{noteId}",
|
|
92
|
+
visitReports: "enterprises/{enterpriseId}/projects/{projectId}/visitReports/{visitReportId}",
|
|
93
|
+
documents: "enterprises/{enterpriseId}/projects/{projectId}/documents/{documentId}",
|
|
94
|
+
devis: "enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}",
|
|
95
|
+
plans: "enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}",
|
|
96
|
+
downPayments: "enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}",
|
|
97
|
+
paymentMethods: "enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}",
|
|
98
|
+
provider: "enterprises/{enterpriseId}/providers/{providerId}",
|
|
99
|
+
status: "enterprises/{enterpriseId}/statuses/{statusId}",
|
|
100
|
+
orders: "enterprises/{enterpriseId}/projects/{projectId}/orders/{orderId}",
|
|
101
|
+
bills: "enterprises/{enterpriseId}/projects/{projectId}/bills/{billId}",
|
|
102
|
+
indexes: "enterprises/{enterpriseId}/projects/{projectId}/indexes/{indexId}",
|
|
103
|
+
counter: "counters/{counterId}",
|
|
104
|
+
invoice: "enterprises/{enterpriseId}/invoices/{invoiceId}",
|
|
105
|
+
materialsProvider: "enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}",
|
|
106
|
+
material: "enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials/{materialId}",
|
|
107
|
+
invitation: "enterprises/{enterpriseId}/invitations/{invitationId}",
|
|
108
|
+
devisTemplate: "enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}",
|
|
109
|
+
estimation: "enterprises/{enterpriseId}/estimations/{estimationId}",
|
|
110
|
+
userNotification: "users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}",
|
|
111
|
+
history: "enterprises/{enterpriseId}/histories/{historyId}",
|
|
112
|
+
receptionVouchers: "enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}",
|
|
113
|
+
notification: "enterprises/{enterpriseId}/notifications/{notificationId}",
|
|
114
|
+
nomenclatures: "enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}",
|
|
115
|
+
category: "enterprises/{enterpriseId}/categories/{categoryId}",
|
|
116
|
+
operationsCatalogs: "enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}",
|
|
117
|
+
operationsGroups: "enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}",
|
|
118
|
+
operation: "enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}",
|
|
119
|
+
operationMaterial: "enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials/{operationMaterialId}",
|
|
120
|
+
devisVersion: "enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}",
|
|
121
|
+
enterpriseDocument: "enterprises/{enterpriseId}/documents/{documentId}",
|
|
122
|
+
enterpriseMedia: "enterprises/{enterpriseId}/medias/{mediaId}",
|
|
123
|
+
configuration: "enterprises/{enterpriseId}/configurations/{configurationId}",
|
|
124
|
+
log: "enterprises/{enterpriseId}/logs/{logId}",
|
|
125
|
+
systemVersion: "systemVersions/{systemVersionId}",
|
|
126
|
+
evaluationConfig: "enterprises/{enterpriseId}/evaluationsConfig/{evaluationConfigId}",
|
|
127
|
+
evaluation: "enterprises/{enterpriseId}/evaluations/{evaluationId}",
|
|
128
|
+
devisCandidate: "enterprises/{enterpriseId}/projects/{projectId}/devisCandidates/{devisCandidateId}",
|
|
129
|
+
workOrder: "enterprises/{enterpriseId}/workOrders/{workOrderId}",
|
|
130
|
+
candidature: "enterprises/{enterpriseId}/projects/{projectId}/candidatures/{candidatureId}",
|
|
131
|
+
serviceOrder: "enterprises/{enterpriseId}/projects/{projectId}/serviceOrders/{serviceOrderId}",
|
|
132
|
+
marketplaceOrder: "enterprises/{enterpriseId}/projects/{projectId}/marketplaceOrders/{marketplaceOrderId}",
|
|
133
|
+
marketplaceNotification: "enterprises/{enterpriseId}/projects/{projectId}/marketplaceNotifications/{marketplaceNotificationId}",
|
|
134
|
+
devisCandidateTemplate: "enterprises/{enterpriseId}/workOrders/{workOrderId}/devisCandidateTemplates/{devisCandidateTemplateId}",
|
|
135
|
+
filesOfWorksExecuted: "enterprises/{enterpriseId}/projects/{projectId}/filesOfWorksExecuted/{filesOfWorksExecutedId}",
|
|
133
136
|
},
|
|
134
137
|
indexes: {
|
|
135
138
|
// users
|
|
136
|
-
admins:
|
|
137
|
-
agents:
|
|
138
|
-
pros:
|
|
139
|
-
sellers:
|
|
140
|
-
clients:
|
|
139
|
+
admins: "admins", // 1
|
|
140
|
+
agents: "agents", // 2
|
|
141
|
+
pros: "pros", // 3
|
|
142
|
+
sellers: "sellers", // 4
|
|
143
|
+
clients: "clients", // 5
|
|
141
144
|
// projects
|
|
142
|
-
projects:
|
|
143
|
-
medias:
|
|
144
|
-
events:
|
|
145
|
-
devis:
|
|
145
|
+
projects: "projects", // 6
|
|
146
|
+
medias: "projects-medias", // 7
|
|
147
|
+
events: "projects-events", // 8
|
|
148
|
+
devis: "projects-devis", // 9
|
|
146
149
|
// configuration
|
|
147
|
-
providers:
|
|
148
|
-
materials:
|
|
149
|
-
operations:
|
|
150
|
-
operationsMaterials:
|
|
151
|
-
estimations:
|
|
152
|
-
nomenclatures:
|
|
153
|
-
workOrders:
|
|
150
|
+
providers: "providers", // 10
|
|
151
|
+
materials: "materials", // 11
|
|
152
|
+
operations: "operations", // 12
|
|
153
|
+
operationsMaterials: "operations-materials", // 13
|
|
154
|
+
estimations: "estimations", // 14
|
|
155
|
+
nomenclatures: "nomenclatures", // 15
|
|
156
|
+
workOrders: "workOrders", // 16
|
|
154
157
|
// used only for managment
|
|
155
|
-
systemMaterials:
|
|
156
|
-
systemOperations:
|
|
157
|
-
systemOperationsMaterials:
|
|
158
|
-
systemMaterialsProvider:
|
|
159
|
-
systemStatus:
|
|
160
|
-
systemNomenclatures:
|
|
161
|
-
systemCategories:
|
|
158
|
+
systemMaterials: "system-materials", // 17
|
|
159
|
+
systemOperations: "system-operations", // 18
|
|
160
|
+
systemOperationsMaterials: "system-operations-materials", // 19
|
|
161
|
+
systemMaterialsProvider: "system-materials-provider", // 20
|
|
162
|
+
systemStatus: "system-status", // 21
|
|
163
|
+
systemNomenclatures: "system-nomenclatures", // 22
|
|
164
|
+
systemCategories: "system-categories", // 23
|
|
162
165
|
},
|
|
163
166
|
},
|
|
164
167
|
search: {
|
|
165
168
|
// users
|
|
166
169
|
agents: {
|
|
167
170
|
searchableAttributes: [
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
"email",
|
|
172
|
+
"displayName",
|
|
173
|
+
"address",
|
|
174
|
+
"phone.mobile",
|
|
175
|
+
"jobTitle",
|
|
173
176
|
],
|
|
174
177
|
attributesForFaceting: [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
178
|
+
"active",
|
|
179
|
+
"isLeader",
|
|
180
|
+
"leader",
|
|
181
|
+
"searchable(userId)",
|
|
182
|
+
"has_leader",
|
|
183
|
+
"searchable(email)",
|
|
184
|
+
"searchable(scope)",
|
|
185
|
+
"status",
|
|
183
186
|
],
|
|
184
187
|
maxValuesPerFacet: 1000,
|
|
185
188
|
maxFacetHits: 100,
|
|
186
189
|
},
|
|
187
190
|
pros: {
|
|
188
191
|
searchableAttributes: [
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
"email",
|
|
193
|
+
"displayName",
|
|
194
|
+
"address",
|
|
195
|
+
"phone.mobile",
|
|
196
|
+
"jobTitle",
|
|
194
197
|
],
|
|
195
198
|
attributesForFaceting: [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
"active",
|
|
200
|
+
"searchable(userId)",
|
|
201
|
+
"searchable(email)",
|
|
202
|
+
"searchable(specialities)",
|
|
203
|
+
"searchable(skills)",
|
|
204
|
+
"searchable(regions)",
|
|
205
|
+
"searchable(scope)",
|
|
206
|
+
"status",
|
|
207
|
+
"siren",
|
|
208
|
+
"searchable(leaderId)",
|
|
206
209
|
],
|
|
207
210
|
maxValuesPerFacet: 1000,
|
|
208
211
|
maxFacetHits: 100,
|
|
209
212
|
},
|
|
210
213
|
admins: {
|
|
211
214
|
searchableAttributes: [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
"email",
|
|
216
|
+
"displayName",
|
|
217
|
+
"address",
|
|
218
|
+
"phone.mobile",
|
|
219
|
+
"jobTitle",
|
|
220
|
+
"status",
|
|
218
221
|
],
|
|
219
222
|
attributesForFaceting: [
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
"active",
|
|
224
|
+
"searchable(email)",
|
|
225
|
+
"searchable(userId)",
|
|
226
|
+
"searchable(scope)",
|
|
227
|
+
"status",
|
|
225
228
|
],
|
|
226
229
|
maxValuesPerFacet: 1000,
|
|
227
230
|
maxFacetHits: 100,
|
|
228
231
|
},
|
|
229
232
|
sellers: {
|
|
230
233
|
searchableAttributes: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
"email",
|
|
235
|
+
"displayName",
|
|
236
|
+
"address",
|
|
237
|
+
"phone.mobile",
|
|
238
|
+
"jobTitle",
|
|
236
239
|
],
|
|
237
240
|
attributesForFaceting: [
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
"active",
|
|
242
|
+
"isLeader",
|
|
243
|
+
"leader",
|
|
244
|
+
"has_leader",
|
|
245
|
+
"searchable(userId)",
|
|
246
|
+
"searchable(email)",
|
|
247
|
+
"searchable(provider)",
|
|
248
|
+
"searchable(scope)",
|
|
249
|
+
"status",
|
|
247
250
|
],
|
|
248
251
|
maxValuesPerFacet: 1000,
|
|
249
252
|
maxFacetHits: 100,
|
|
250
253
|
},
|
|
251
254
|
clients: {
|
|
252
|
-
searchableAttributes: [
|
|
255
|
+
searchableAttributes: ["email", "displayName", "address", "phone.mobile"],
|
|
253
256
|
attributesForFaceting: [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
"active",
|
|
258
|
+
"userId",
|
|
259
|
+
"searchable(email)",
|
|
260
|
+
"searchable(scope)",
|
|
258
261
|
],
|
|
259
262
|
maxValuesPerFacet: 1000,
|
|
260
263
|
maxFacetHits: 100,
|
|
@@ -262,295 +265,297 @@ const productionEnvironment = {
|
|
|
262
265
|
// projects
|
|
263
266
|
projects: {
|
|
264
267
|
searchableAttributes: [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
268
|
+
"name",
|
|
269
|
+
"address",
|
|
270
|
+
"client.displayName",
|
|
271
|
+
"client.email",
|
|
272
|
+
"client.address",
|
|
273
|
+
"client.phone.number",
|
|
274
|
+
"pro.displayName",
|
|
275
|
+
"pro.email",
|
|
276
|
+
"agents.displayName",
|
|
277
|
+
"agents.email",
|
|
278
|
+
"sellers.displayName",
|
|
279
|
+
"sellers.email",
|
|
280
|
+
"provider.name",
|
|
281
|
+
"status",
|
|
282
|
+
"internalReference",
|
|
283
|
+
"externalReference",
|
|
284
|
+
"workOrderId.region",
|
|
285
|
+
"workOrderId.skills",
|
|
286
|
+
"description",
|
|
287
|
+
"price.total",
|
|
283
288
|
],
|
|
284
289
|
attributesForFaceting: [
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
290
|
+
"parent.id",
|
|
291
|
+
"price.total",
|
|
292
|
+
"searchable(type)",
|
|
293
|
+
"searchable(priority)",
|
|
294
|
+
"searchable(status)",
|
|
295
|
+
"client.userId",
|
|
296
|
+
"searchable(client.displayName)",
|
|
297
|
+
"searchable(client.email)",
|
|
298
|
+
"agents.userId",
|
|
299
|
+
"searchable(agents.displayName)",
|
|
300
|
+
"searchable(agents.email)",
|
|
301
|
+
"searchable(pro.userId)",
|
|
302
|
+
"searchable(pro.displayName)",
|
|
303
|
+
"searchable(pro.email)",
|
|
304
|
+
"searchable(sellers.userId)",
|
|
305
|
+
"searchable(sellers.displayName)",
|
|
306
|
+
"searchable(sellers.email)",
|
|
307
|
+
"searchable(provider.id)",
|
|
308
|
+
"searchable(provider.name)",
|
|
309
|
+
"searchable(category)",
|
|
310
|
+
"searchable(agentManager)",
|
|
311
|
+
"searchable(agentReference)",
|
|
312
|
+
"searchable(sellerManager)",
|
|
313
|
+
"searchable(sellerReference)",
|
|
314
|
+
"searchable(scope)",
|
|
315
|
+
"searchable(marketplaceStatus)",
|
|
316
|
+
"searchable(candidates)",
|
|
317
|
+
"searchable(workOrderId.region)",
|
|
318
|
+
"searchable(workOrderId.skills)",
|
|
319
|
+
"searchable(professionals)",
|
|
320
|
+
"searchable(marketplaceEntity)",
|
|
316
321
|
],
|
|
317
322
|
ranking: [
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
"attribute",
|
|
324
|
+
"desc(updatedAt)",
|
|
325
|
+
"proximity",
|
|
326
|
+
"typo",
|
|
327
|
+
"geo",
|
|
328
|
+
"words",
|
|
329
|
+
"filters",
|
|
330
|
+
"exact",
|
|
326
331
|
],
|
|
327
332
|
maxValuesPerFacet: 1000,
|
|
328
333
|
maxFacetHits: 100,
|
|
329
334
|
},
|
|
330
335
|
medias: {
|
|
331
|
-
searchableAttributes: [
|
|
336
|
+
searchableAttributes: ["name"],
|
|
332
337
|
attributesForFaceting: [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
"owner",
|
|
339
|
+
"searchable(tags)",
|
|
340
|
+
"projectId",
|
|
341
|
+
"searchable(scope)",
|
|
342
|
+
"createdDate",
|
|
338
343
|
],
|
|
339
|
-
ranking: [
|
|
344
|
+
ranking: ["desc(createdAt)"],
|
|
340
345
|
maxValuesPerFacet: 1000,
|
|
341
346
|
maxFacetHits: 100,
|
|
342
347
|
},
|
|
343
348
|
events: {
|
|
344
|
-
searchableAttributes: [
|
|
349
|
+
searchableAttributes: ["title", "type"],
|
|
345
350
|
attributesForFaceting: [
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
351
|
+
"type",
|
|
352
|
+
"searchable(start)",
|
|
353
|
+
"searchable(end)",
|
|
354
|
+
"owner",
|
|
355
|
+
"projectId",
|
|
356
|
+
"searchable(scope)",
|
|
352
357
|
],
|
|
353
|
-
ranking: [
|
|
358
|
+
ranking: ["desc(start)"],
|
|
354
359
|
maxValuesPerFacet: 1000,
|
|
355
360
|
maxFacetHits: 100,
|
|
356
361
|
},
|
|
357
362
|
devis: {
|
|
358
|
-
searchableAttributes: [
|
|
363
|
+
searchableAttributes: ["name", "status"],
|
|
359
364
|
attributesForFaceting: [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
+
"searchable(status)",
|
|
366
|
+
"operationsCatalog",
|
|
367
|
+
"projectId",
|
|
368
|
+
"searchable(scope)",
|
|
369
|
+
"pdf_generated",
|
|
365
370
|
],
|
|
366
|
-
ranking: [
|
|
371
|
+
ranking: ["desc(dateApproved)", "desc(status)", "desc(updatedAt)"],
|
|
367
372
|
maxValuesPerFacet: 1000,
|
|
368
373
|
maxFacetHits: 100,
|
|
369
374
|
},
|
|
370
375
|
// configuration
|
|
371
376
|
providers: {
|
|
372
377
|
searchableAttributes: [
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
"name",
|
|
379
|
+
"contact.name",
|
|
380
|
+
"contact.email",
|
|
381
|
+
"address",
|
|
382
|
+
"siret",
|
|
378
383
|
],
|
|
379
384
|
attributesForFaceting: [
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
+
"tva",
|
|
386
|
+
"commission.enterprise",
|
|
387
|
+
"commission.pro",
|
|
388
|
+
"commission.provider",
|
|
389
|
+
"searchable(scope)",
|
|
385
390
|
],
|
|
386
391
|
maxValuesPerFacet: 1000,
|
|
387
392
|
maxFacetHits: 100,
|
|
388
393
|
},
|
|
389
394
|
materials: {
|
|
390
|
-
searchableAttributes: [
|
|
395
|
+
searchableAttributes: ["name", "unitPrice", "provider"],
|
|
391
396
|
attributesForFaceting: [
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
397
|
+
"unitPrice",
|
|
398
|
+
"searchable(scope)",
|
|
399
|
+
"searchable(provider)",
|
|
400
|
+
"searchable(category)",
|
|
401
|
+
"margin.id",
|
|
402
|
+
"supplier.id",
|
|
398
403
|
],
|
|
399
|
-
ranking: [
|
|
404
|
+
ranking: ["asc(name)"],
|
|
400
405
|
maxValuesPerFacet: 1000,
|
|
401
406
|
maxFacetHits: 100,
|
|
402
407
|
},
|
|
403
408
|
operations: {
|
|
404
|
-
searchableAttributes: [
|
|
409
|
+
searchableAttributes: ["name", "unitPrice", "objectID"],
|
|
405
410
|
attributesForFaceting: [
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
+
"unitPrice",
|
|
412
|
+
"searchable(lot)",
|
|
413
|
+
"searchable(scope)",
|
|
414
|
+
"searchable(catalogId)",
|
|
415
|
+
"searchable(category)",
|
|
411
416
|
],
|
|
412
417
|
maxValuesPerFacet: 1000,
|
|
413
418
|
maxFacetHits: 100,
|
|
414
419
|
},
|
|
415
420
|
operationsMaterials: {
|
|
416
|
-
searchableAttributes: [
|
|
421
|
+
searchableAttributes: ["name", "unitPrice", "unit", "externalId"],
|
|
417
422
|
attributesForFaceting: [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
423
|
+
"searchable(scope)",
|
|
424
|
+
"searchable(provider)",
|
|
425
|
+
"searchable(optId)",
|
|
426
|
+
"searchable(externalId)",
|
|
422
427
|
],
|
|
423
|
-
ranking: [
|
|
428
|
+
ranking: ["asc(order)"],
|
|
424
429
|
maxValuesPerFacet: 1000,
|
|
425
430
|
maxFacetHits: 100,
|
|
426
431
|
},
|
|
427
432
|
estimations: {
|
|
428
433
|
searchableAttributes: [
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
434
|
+
"name",
|
|
435
|
+
"address",
|
|
436
|
+
"type",
|
|
437
|
+
"typeProject",
|
|
438
|
+
"client.displayName",
|
|
439
|
+
"client.email",
|
|
440
|
+
"client.address",
|
|
441
|
+
"client.phone.mobile",
|
|
442
|
+
"sellers.displayName",
|
|
443
|
+
"sellers.email",
|
|
444
|
+
"sellers.phone.mobile",
|
|
445
|
+
"provider.name",
|
|
441
446
|
],
|
|
442
447
|
attributesForFaceting: [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
448
|
+
"searchable(type)",
|
|
449
|
+
"searchable(typeProject)",
|
|
450
|
+
"searchable(scope)",
|
|
451
|
+
"searchable(owner.userId)",
|
|
447
452
|
],
|
|
448
|
-
ranking: [
|
|
453
|
+
ranking: ["desc(updatedAt)"],
|
|
449
454
|
maxValuesPerFacet: 1000,
|
|
450
455
|
maxFacetHits: 100,
|
|
451
456
|
},
|
|
452
457
|
nomenclatures: {
|
|
453
|
-
searchableAttributes: [
|
|
458
|
+
searchableAttributes: ["value"],
|
|
454
459
|
attributesForFaceting: [
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
460
|
+
"searchable(scope)",
|
|
461
|
+
"searchable(identifier)",
|
|
462
|
+
"searchable(status)",
|
|
458
463
|
],
|
|
459
|
-
ranking: [
|
|
464
|
+
ranking: ["asc(value)"],
|
|
460
465
|
maxValuesPerFacet: 1000,
|
|
461
466
|
maxFacetHits: 100,
|
|
462
467
|
},
|
|
463
468
|
workOrders: {
|
|
464
469
|
searchableAttributes: [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
470
|
+
"reference",
|
|
471
|
+
"address",
|
|
472
|
+
"estimatedPrice",
|
|
473
|
+
"owner.displayName",
|
|
469
474
|
],
|
|
470
475
|
attributesForFaceting: [
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
476
|
+
"owner",
|
|
477
|
+
"searchable(scope)",
|
|
478
|
+
"searchable(priority)",
|
|
479
|
+
"searchable(status)",
|
|
480
|
+
"searchable(skills)",
|
|
481
|
+
"searchable(region)",
|
|
482
|
+
"searchable(agenceName)",
|
|
483
|
+
"searchable(client)",
|
|
484
|
+
"searchable(owner.userId)",
|
|
485
|
+
"searchable(region)",
|
|
486
|
+
"searchable(agenceName)",
|
|
487
|
+
"searchable(skills)",
|
|
488
|
+
"searchable(client)",
|
|
489
|
+
"searchable(marketplaceEntity)",
|
|
485
490
|
],
|
|
486
|
-
ranking: [
|
|
491
|
+
ranking: ["desc(createdAt)"],
|
|
487
492
|
maxValuesPerFacet: 1000,
|
|
488
493
|
maxFacetHits: 100,
|
|
489
494
|
},
|
|
490
495
|
// used only for managment
|
|
491
496
|
systemMaterials: {
|
|
492
|
-
searchableAttributes: [
|
|
497
|
+
searchableAttributes: ["name", "unitPrice"],
|
|
493
498
|
attributesForFaceting: [
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
499
|
+
"unitPrice",
|
|
500
|
+
"searchable(provider)",
|
|
501
|
+
"searchable(category)",
|
|
497
502
|
],
|
|
498
|
-
ranking: [
|
|
503
|
+
ranking: ["desc(updatedAt)"],
|
|
499
504
|
maxValuesPerFacet: 1000,
|
|
500
505
|
maxFacetHits: 100,
|
|
501
506
|
},
|
|
502
507
|
systemOperations: {
|
|
503
|
-
searchableAttributes: [
|
|
504
|
-
attributesForFaceting: [
|
|
505
|
-
ranking: [
|
|
508
|
+
searchableAttributes: ["name", "unitPrice"],
|
|
509
|
+
attributesForFaceting: ["searchable(lot)"],
|
|
510
|
+
ranking: ["desc(updatedAt)"],
|
|
506
511
|
maxValuesPerFacet: 1000,
|
|
507
512
|
maxFacetHits: 100,
|
|
508
513
|
},
|
|
509
514
|
systemOperationsMaterials: {
|
|
510
|
-
searchableAttributes: [
|
|
511
|
-
attributesForFaceting: [
|
|
512
|
-
ranking: [
|
|
515
|
+
searchableAttributes: ["name", "unitPrice", "unit", "externalId"],
|
|
516
|
+
attributesForFaceting: ["searchable(provider)", "searchable(optId)"],
|
|
517
|
+
ranking: ["asc(order)"],
|
|
513
518
|
maxValuesPerFacet: 1000,
|
|
514
519
|
maxFacetHits: 100,
|
|
515
520
|
},
|
|
516
521
|
systemMaterialsProvider: {
|
|
517
|
-
searchableAttributes: [
|
|
522
|
+
searchableAttributes: ["name", "status"],
|
|
518
523
|
attributesForFaceting: [
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
+
"searchable(status)",
|
|
525
|
+
"searchable(identifier)",
|
|
526
|
+
"searchable(addMaterials)",
|
|
527
|
+
"searchable(editable)",
|
|
528
|
+
"searchable(type)",
|
|
524
529
|
],
|
|
525
|
-
ranking: [
|
|
530
|
+
ranking: ["desc(updatedAt)"],
|
|
526
531
|
maxValuesPerFacet: 1000,
|
|
527
532
|
maxFacetHits: 100,
|
|
528
533
|
},
|
|
529
534
|
systemStatus: {
|
|
530
|
-
searchableAttributes: [
|
|
535
|
+
searchableAttributes: ["name", "color"],
|
|
531
536
|
attributesForFaceting: [
|
|
532
|
-
|
|
533
|
-
|
|
537
|
+
"searchable(forDashboard)",
|
|
538
|
+
"searchable(default)",
|
|
534
539
|
],
|
|
535
|
-
ranking: [
|
|
540
|
+
ranking: ["asc(order)"],
|
|
536
541
|
maxValuesPerFacet: 1000,
|
|
537
542
|
maxFacetHits: 100,
|
|
538
543
|
},
|
|
539
544
|
systemNomenclatures: {
|
|
540
|
-
searchableAttributes: [
|
|
541
|
-
attributesForFaceting: [
|
|
542
|
-
ranking: [
|
|
545
|
+
searchableAttributes: ["identifier", "value"],
|
|
546
|
+
attributesForFaceting: ["searchable(identifier)", "searchable(status)"],
|
|
547
|
+
ranking: ["desc(updatedAt)"],
|
|
543
548
|
maxValuesPerFacet: 1000,
|
|
544
549
|
maxFacetHits: 100,
|
|
545
550
|
},
|
|
546
551
|
systemCategories: {
|
|
547
|
-
searchableAttributes: [
|
|
552
|
+
searchableAttributes: ["name"],
|
|
548
553
|
attributesForFaceting: [
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
554
|
+
"searchable(entity)",
|
|
555
|
+
"searchable(parent)",
|
|
556
|
+
"searchable(provider)",
|
|
552
557
|
],
|
|
553
|
-
ranking: [
|
|
558
|
+
ranking: ["asc(name)"],
|
|
554
559
|
maxValuesPerFacet: 1000,
|
|
555
560
|
maxFacetHits: 100,
|
|
556
561
|
},
|