@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.
@@ -7,254 +7,257 @@ const productionEnvironment = {
7
7
  stripe: {},
8
8
  },
9
9
  isTest: false,
10
- name: 'production',
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: 'searchable(scope)',
15
- visibleBy: 'visibility',
16
- ownerField: 'owner',
14
+ scopeField: "searchable(scope)",
15
+ visibleBy: "visibility",
16
+ ownerField: "owner",
17
17
  },
18
18
  claims: {
19
- enterprise: 'enterprise',
20
- role: 'role',
21
- secureSearchApiKey: 'searchKey',
19
+ enterprise: "enterprise",
20
+ role: "role",
21
+ secureSearchApiKey: "searchKey",
22
22
  },
23
23
  },
24
24
  realtime: {
25
- default: 'enterprises/{enterpriseId}/indexes/{indexName}',
26
- projects: 'enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}',
25
+ default: "enterprises/{enterpriseId}/indexes/{indexName}",
26
+ projects: "enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}",
27
27
  },
28
28
  schema: {
29
29
  collections: {
30
- users: 'users',
31
- enterprises: 'enterprises',
30
+ users: "users",
31
+ enterprises: "enterprises",
32
32
  // tslint:disable-next-line: object-literal-sort-keys
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',
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: 'users/{userId}',
83
- userProfile: 'users/{userId}/profiles/{enterpriseId}',
84
- billing: 'enterprises/{enterpriseId}/billing/{billingId}',
85
- enterprise: 'enterprises/{enterpriseId}',
86
- global: 'global/stats',
87
- project: 'enterprises/{enterpriseId}/projects/{projectId}',
88
- medias: 'enterprises/{enterpriseId}/projects/{projectId}/medias/{mediaId}',
89
- events: 'enterprises/{enterpriseId}/projects/{projectId}/events/{eventId}',
90
- notes: 'enterprises/{enterpriseId}/projects/{projectId}/notes/{noteId}',
91
- visitReports: 'enterprises/{enterpriseId}/projects/{projectId}/visitReports/{visitReportId}',
92
- documents: 'enterprises/{enterpriseId}/projects/{projectId}/documents/{documentId}',
93
- devis: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}',
94
- plans: 'enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}',
95
- downPayments: 'enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}',
96
- paymentMethods: 'enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}',
97
- provider: 'enterprises/{enterpriseId}/providers/{providerId}',
98
- status: 'enterprises/{enterpriseId}/statuses/{statusId}',
99
- orders: 'enterprises/{enterpriseId}/projects/{projectId}/orders/{orderId}',
100
- bills: 'enterprises/{enterpriseId}/projects/{projectId}/bills/{billId}',
101
- indexes: 'enterprises/{enterpriseId}/projects/{projectId}/indexes/{indexId}',
102
- counter: 'counters/{counterId}',
103
- invoice: 'enterprises/{enterpriseId}/invoices/{invoiceId}',
104
- materialsProvider: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}',
105
- material: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials/{materialId}',
106
- invitation: 'enterprises/{enterpriseId}/invitations/{invitationId}',
107
- devisTemplate: 'enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}',
108
- estimation: 'enterprises/{enterpriseId}/estimations/{estimationId}',
109
- userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
110
- history: 'enterprises/{enterpriseId}/histories/{historyId}',
111
- receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
112
- notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
113
- nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
114
- category: 'enterprises/{enterpriseId}/categories/{categoryId}',
115
- operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
116
- operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
117
- operation: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}',
118
- operationMaterial: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials/{operationMaterialId}',
119
- devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}',
120
- enterpriseDocument: 'enterprises/{enterpriseId}/documents/{documentId}',
121
- enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
122
- configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}',
123
- log: 'enterprises/{enterpriseId}/logs/{logId}',
124
- systemVersion: 'systemVersions/{systemVersionId}',
125
- evaluationConfig: 'enterprises/{enterpriseId}/evaluationsConfig/{evaluationConfigId}',
126
- evaluation: 'enterprises/{enterpriseId}/evaluations/{evaluationId}',
127
- devisCandidate: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates/{devisCandidateId}',
128
- workOrder: 'enterprises/{enterpriseId}/workOrders/{workOrderId}',
129
- candidature: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures/{candidatureId}',
130
- serviceOrder: 'enterprises/{enterpriseId}/projects/{projectId}/serviceOrders/{serviceOrderId}',
131
- marketplaceOrder: 'enterprises/{enterpriseId}/projects/{projectId}/marketplaceOrders/{marketplaceOrderId}',
132
- marketplaceNotification: 'enterprises/{enterpriseId}/projects/{projectId}/marketplaceNotifications/{marketplaceNotificationId}',
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: 'admins', // 1
137
- agents: 'agents', // 2
138
- pros: 'pros', // 3
139
- sellers: 'sellers', // 4
140
- clients: 'clients', // 5
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: 'projects', // 6
143
- medias: 'projects-medias', // 7
144
- events: 'projects-events', // 8
145
- devis: 'projects-devis', // 9
145
+ projects: "projects", // 6
146
+ medias: "projects-medias", // 7
147
+ events: "projects-events", // 8
148
+ devis: "projects-devis", // 9
146
149
  // configuration
147
- providers: 'providers', // 10
148
- materials: 'materials', // 11
149
- operations: 'operations', // 12
150
- operationsMaterials: 'operations-materials', // 13
151
- estimations: 'estimations', // 14
152
- nomenclatures: 'nomenclatures', // 15
153
- workOrders: 'workOrders', // 16
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: 'system-materials', // 17
156
- systemOperations: 'system-operations', // 18
157
- systemOperationsMaterials: 'system-operations-materials', // 19
158
- systemMaterialsProvider: 'system-materials-provider', // 20
159
- systemStatus: 'system-status', // 21
160
- systemNomenclatures: 'system-nomenclatures', // 22
161
- systemCategories: 'system-categories', // 23
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
- 'email',
169
- 'displayName',
170
- 'address',
171
- 'phone.mobile',
172
- 'jobTitle',
171
+ "email",
172
+ "displayName",
173
+ "address",
174
+ "phone.mobile",
175
+ "jobTitle",
173
176
  ],
174
177
  attributesForFaceting: [
175
- 'active',
176
- 'isLeader',
177
- 'leader',
178
- 'searchable(userId)',
179
- 'has_leader',
180
- 'searchable(email)',
181
- 'searchable(scope)',
182
- 'status',
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
- 'email',
190
- 'displayName',
191
- 'address',
192
- 'phone.mobile',
193
- 'jobTitle',
192
+ "email",
193
+ "displayName",
194
+ "address",
195
+ "phone.mobile",
196
+ "jobTitle",
194
197
  ],
195
198
  attributesForFaceting: [
196
- 'active',
197
- 'searchable(userId)',
198
- 'searchable(email)',
199
- 'searchable(specialities)',
200
- 'searchable(skills)',
201
- 'searchable(regions)',
202
- 'searchable(scope)',
203
- 'status',
204
- 'siren',
205
- 'searchable(leaderId)',
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
- 'email',
213
- 'displayName',
214
- 'address',
215
- 'phone.mobile',
216
- 'jobTitle',
217
- 'status',
215
+ "email",
216
+ "displayName",
217
+ "address",
218
+ "phone.mobile",
219
+ "jobTitle",
220
+ "status",
218
221
  ],
219
222
  attributesForFaceting: [
220
- 'active',
221
- 'searchable(email)',
222
- 'searchable(userId)',
223
- 'searchable(scope)',
224
- 'status',
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
- 'email',
232
- 'displayName',
233
- 'address',
234
- 'phone.mobile',
235
- 'jobTitle',
234
+ "email",
235
+ "displayName",
236
+ "address",
237
+ "phone.mobile",
238
+ "jobTitle",
236
239
  ],
237
240
  attributesForFaceting: [
238
- 'active',
239
- 'isLeader',
240
- 'leader',
241
- 'has_leader',
242
- 'searchable(userId)',
243
- 'searchable(email)',
244
- 'searchable(provider)',
245
- 'searchable(scope)',
246
- 'status',
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: ['email', 'displayName', 'address', 'phone.mobile'],
255
+ searchableAttributes: ["email", "displayName", "address", "phone.mobile"],
253
256
  attributesForFaceting: [
254
- 'active',
255
- 'userId',
256
- 'searchable(email)',
257
- 'searchable(scope)',
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
- 'name',
266
- 'address',
267
- 'description',
268
- 'price.total',
269
- 'client.displayName',
270
- 'client.email',
271
- 'client.address',
272
- 'client.phone.number',
273
- 'pro.displayName',
274
- 'pro.email',
275
- 'agents.displayName',
276
- 'agents.email',
277
- 'sellers.displayName',
278
- 'sellers.email',
279
- 'provider.name',
280
- 'status',
281
- 'workOrderId.region',
282
- 'workOrderId.skills',
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
- 'parent.id',
286
- 'price.total',
287
- 'searchable(type)',
288
- 'searchable(priority)',
289
- 'searchable(status)',
290
- 'client.userId',
291
- 'searchable(client.displayName)',
292
- 'searchable(client.email)',
293
- 'agents.userId',
294
- 'searchable(agents.displayName)',
295
- 'searchable(agents.email)',
296
- 'searchable(pro.userId)',
297
- 'searchable(pro.displayName)',
298
- 'searchable(pro.email)',
299
- 'searchable(sellers.userId)',
300
- 'searchable(sellers.displayName)',
301
- 'searchable(sellers.email)',
302
- 'searchable(provider.id)',
303
- 'searchable(provider.name)',
304
- 'searchable(category)',
305
- 'searchable(agentManager)',
306
- 'searchable(agentReference)',
307
- 'searchable(sellerManager)',
308
- 'searchable(sellerReference)',
309
- 'searchable(scope)',
310
- 'searchable(marketplaceStatus)',
311
- 'searchable(candidates)',
312
- 'searchable(workOrderId.region)',
313
- 'searchable(workOrderId.skills)',
314
- 'searchable(professionals)',
315
- 'searchable(marketplaceEntity)',
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
- 'attribute',
319
- 'desc(updatedAt)',
320
- 'proximity',
321
- 'typo',
322
- 'geo',
323
- 'words',
324
- 'filters',
325
- 'exact',
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: ['name'],
336
+ searchableAttributes: ["name"],
332
337
  attributesForFaceting: [
333
- 'owner',
334
- 'searchable(tags)',
335
- 'projectId',
336
- 'searchable(scope)',
337
- 'createdDate',
338
+ "owner",
339
+ "searchable(tags)",
340
+ "projectId",
341
+ "searchable(scope)",
342
+ "createdDate",
338
343
  ],
339
- ranking: ['desc(createdAt)'],
344
+ ranking: ["desc(createdAt)"],
340
345
  maxValuesPerFacet: 1000,
341
346
  maxFacetHits: 100,
342
347
  },
343
348
  events: {
344
- searchableAttributes: ['title', 'type'],
349
+ searchableAttributes: ["title", "type"],
345
350
  attributesForFaceting: [
346
- 'type',
347
- 'searchable(start)',
348
- 'searchable(end)',
349
- 'owner',
350
- 'projectId',
351
- 'searchable(scope)',
351
+ "type",
352
+ "searchable(start)",
353
+ "searchable(end)",
354
+ "owner",
355
+ "projectId",
356
+ "searchable(scope)",
352
357
  ],
353
- ranking: ['desc(start)'],
358
+ ranking: ["desc(start)"],
354
359
  maxValuesPerFacet: 1000,
355
360
  maxFacetHits: 100,
356
361
  },
357
362
  devis: {
358
- searchableAttributes: ['name', 'status'],
363
+ searchableAttributes: ["name", "status"],
359
364
  attributesForFaceting: [
360
- 'searchable(status)',
361
- 'operationsCatalog',
362
- 'projectId',
363
- 'searchable(scope)',
364
- 'pdf_generated',
365
+ "searchable(status)",
366
+ "operationsCatalog",
367
+ "projectId",
368
+ "searchable(scope)",
369
+ "pdf_generated",
365
370
  ],
366
- ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
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
- 'name',
374
- 'contact.name',
375
- 'contact.email',
376
- 'address',
377
- 'siret',
378
+ "name",
379
+ "contact.name",
380
+ "contact.email",
381
+ "address",
382
+ "siret",
378
383
  ],
379
384
  attributesForFaceting: [
380
- 'tva',
381
- 'commission.enterprise',
382
- 'commission.pro',
383
- 'commission.provider',
384
- 'searchable(scope)',
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: ['name', 'unitPrice', 'provider'],
395
+ searchableAttributes: ["name", "unitPrice", "provider"],
391
396
  attributesForFaceting: [
392
- 'unitPrice',
393
- 'searchable(scope)',
394
- 'searchable(provider)',
395
- 'searchable(category)',
396
- 'margin.id',
397
- 'supplier.id',
397
+ "unitPrice",
398
+ "searchable(scope)",
399
+ "searchable(provider)",
400
+ "searchable(category)",
401
+ "margin.id",
402
+ "supplier.id",
398
403
  ],
399
- ranking: ['asc(name)'],
404
+ ranking: ["asc(name)"],
400
405
  maxValuesPerFacet: 1000,
401
406
  maxFacetHits: 100,
402
407
  },
403
408
  operations: {
404
- searchableAttributes: ['name', 'unitPrice', 'objectID'],
409
+ searchableAttributes: ["name", "unitPrice", "objectID"],
405
410
  attributesForFaceting: [
406
- 'unitPrice',
407
- 'searchable(lot)',
408
- 'searchable(scope)',
409
- 'searchable(catalogId)',
410
- 'searchable(category)',
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: ['name', 'unitPrice', 'unit', 'externalId'],
421
+ searchableAttributes: ["name", "unitPrice", "unit", "externalId"],
417
422
  attributesForFaceting: [
418
- 'searchable(scope)',
419
- 'searchable(provider)',
420
- 'searchable(optId)',
421
- 'searchable(externalId)',
423
+ "searchable(scope)",
424
+ "searchable(provider)",
425
+ "searchable(optId)",
426
+ "searchable(externalId)",
422
427
  ],
423
- ranking: ['asc(order)'],
428
+ ranking: ["asc(order)"],
424
429
  maxValuesPerFacet: 1000,
425
430
  maxFacetHits: 100,
426
431
  },
427
432
  estimations: {
428
433
  searchableAttributes: [
429
- 'name',
430
- 'address',
431
- 'type',
432
- 'typeProject',
433
- 'client.displayName',
434
- 'client.email',
435
- 'client.address',
436
- 'client.phone.mobile',
437
- 'sellers.displayName',
438
- 'sellers.email',
439
- 'sellers.phone.mobile',
440
- 'provider.name',
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
- 'searchable(type)',
444
- 'searchable(typeProject)',
445
- 'searchable(scope)',
446
- 'searchable(owner.userId)',
448
+ "searchable(type)",
449
+ "searchable(typeProject)",
450
+ "searchable(scope)",
451
+ "searchable(owner.userId)",
447
452
  ],
448
- ranking: ['desc(updatedAt)'],
453
+ ranking: ["desc(updatedAt)"],
449
454
  maxValuesPerFacet: 1000,
450
455
  maxFacetHits: 100,
451
456
  },
452
457
  nomenclatures: {
453
- searchableAttributes: ['value'],
458
+ searchableAttributes: ["value"],
454
459
  attributesForFaceting: [
455
- 'searchable(scope)',
456
- 'searchable(identifier)',
457
- 'searchable(status)',
460
+ "searchable(scope)",
461
+ "searchable(identifier)",
462
+ "searchable(status)",
458
463
  ],
459
- ranking: ['asc(value)'],
464
+ ranking: ["asc(value)"],
460
465
  maxValuesPerFacet: 1000,
461
466
  maxFacetHits: 100,
462
467
  },
463
468
  workOrders: {
464
469
  searchableAttributes: [
465
- 'reference',
466
- 'address',
467
- 'estimatedPrice',
468
- 'owner.displayName',
470
+ "reference",
471
+ "address",
472
+ "estimatedPrice",
473
+ "owner.displayName",
469
474
  ],
470
475
  attributesForFaceting: [
471
- 'owner',
472
- 'searchable(scope)',
473
- 'searchable(priority)',
474
- 'searchable(status)',
475
- 'searchable(skills)',
476
- 'searchable(region)',
477
- 'searchable(agenceName)',
478
- 'searchable(client)',
479
- 'searchable(owner.userId)',
480
- 'searchable(region)',
481
- 'searchable(agenceName)',
482
- 'searchable(skills)',
483
- 'searchable(client)',
484
- 'searchable(marketplaceEntity)',
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: ['desc(createdAt)'],
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: ['name', 'unitPrice'],
497
+ searchableAttributes: ["name", "unitPrice"],
493
498
  attributesForFaceting: [
494
- 'unitPrice',
495
- 'searchable(provider)',
496
- 'searchable(category)',
499
+ "unitPrice",
500
+ "searchable(provider)",
501
+ "searchable(category)",
497
502
  ],
498
- ranking: ['desc(updatedAt)'],
503
+ ranking: ["desc(updatedAt)"],
499
504
  maxValuesPerFacet: 1000,
500
505
  maxFacetHits: 100,
501
506
  },
502
507
  systemOperations: {
503
- searchableAttributes: ['name', 'unitPrice'],
504
- attributesForFaceting: ['searchable(lot)'],
505
- ranking: ['desc(updatedAt)'],
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: ['name', 'unitPrice', 'unit', 'externalId'],
511
- attributesForFaceting: ['searchable(provider)', 'searchable(optId)'],
512
- ranking: ['asc(order)'],
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: ['name', 'status'],
522
+ searchableAttributes: ["name", "status"],
518
523
  attributesForFaceting: [
519
- 'searchable(status)',
520
- 'searchable(identifier)',
521
- 'searchable(addMaterials)',
522
- 'searchable(editable)',
523
- 'searchable(type)',
524
+ "searchable(status)",
525
+ "searchable(identifier)",
526
+ "searchable(addMaterials)",
527
+ "searchable(editable)",
528
+ "searchable(type)",
524
529
  ],
525
- ranking: ['desc(updatedAt)'],
530
+ ranking: ["desc(updatedAt)"],
526
531
  maxValuesPerFacet: 1000,
527
532
  maxFacetHits: 100,
528
533
  },
529
534
  systemStatus: {
530
- searchableAttributes: ['name', 'color'],
535
+ searchableAttributes: ["name", "color"],
531
536
  attributesForFaceting: [
532
- 'searchable(forDashboard)',
533
- 'searchable(default)',
537
+ "searchable(forDashboard)",
538
+ "searchable(default)",
534
539
  ],
535
- ranking: ['asc(order)'],
540
+ ranking: ["asc(order)"],
536
541
  maxValuesPerFacet: 1000,
537
542
  maxFacetHits: 100,
538
543
  },
539
544
  systemNomenclatures: {
540
- searchableAttributes: ['identifier', 'value'],
541
- attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
542
- ranking: ['desc(updatedAt)'],
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: ['name'],
552
+ searchableAttributes: ["name"],
548
553
  attributesForFaceting: [
549
- 'searchable(entity)',
550
- 'searchable(parent)',
551
- 'searchable(provider)',
554
+ "searchable(entity)",
555
+ "searchable(parent)",
556
+ "searchable(provider)",
552
557
  ],
553
- ranking: ['asc(name)'],
558
+ ranking: ["asc(name)"],
554
559
  maxValuesPerFacet: 1000,
555
560
  maxFacetHits: 100,
556
561
  },