@placeshakr/config 10.22.0 → 10.22.1-alpha.3
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/auth/index.js +58 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/policy.js +120 -0
- package/dist/auth/policy.js.map +1 -0
- package/dist/environment/base.js +602 -0
- package/dist/environment/base.js.map +1 -0
- package/dist/environment/decorators.js +98 -0
- package/dist/environment/decorators.js.map +1 -0
- package/dist/environment/index.js +37 -0
- package/dist/environment/index.js.map +1 -0
- package/dist/environment/types.js +3 -0
- package/dist/environment/types.js.map +1 -0
- package/dist/events/index.js +12 -0
- package/dist/events/index.js.map +1 -0
- package/dist/helpers/index.js +68 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/uid.js +87 -0
- package/dist/helpers/uid.js.map +1 -0
- package/dist/index.js +30 -8
- package/dist/index.js.map +1 -0
- package/dist/metrics.js +6 -0
- package/dist/metrics.js.map +1 -0
- package/dist/path/index.js +47 -0
- package/dist/path/index.js.map +1 -0
- package/dist/plans/base.js +117 -0
- package/dist/plans/base.js.map +1 -0
- package/dist/plans/index.js +223 -0
- package/dist/plans/index.js.map +1 -0
- package/dist/plans/types.js +3 -0
- package/dist/plans/types.js.map +1 -0
- package/dist/{auth → types/auth}/index.d.ts +21 -21
- package/dist/types/auth/index.d.ts.map +1 -0
- package/dist/types/auth/policy.d.ts +13 -0
- package/dist/types/auth/policy.d.ts.map +1 -0
- package/dist/{environment → types/environment}/base.d.ts +3 -3
- package/dist/types/environment/base.d.ts.map +1 -0
- package/dist/{environment → types/environment}/decorators.d.ts +6 -6
- package/dist/types/environment/decorators.d.ts.map +1 -0
- package/dist/{environment → types/environment}/index.d.ts +15 -15
- package/dist/types/environment/index.d.ts.map +1 -0
- package/dist/{environment → types/environment}/types.d.ts +159 -159
- package/dist/types/environment/types.d.ts.map +1 -0
- package/dist/{events → types/events}/index.d.ts +58 -58
- package/dist/types/events/index.d.ts.map +1 -0
- package/dist/{helpers → types/helpers}/index.d.ts +65 -65
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/{helpers → types/helpers}/uid.d.ts +5 -5
- package/dist/types/helpers/uid.d.ts.map +1 -0
- package/dist/{index.d.ts → types/index.d.ts} +13 -13
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{metrics.d.ts → types/metrics.d.ts} +2 -2
- package/dist/types/metrics.d.ts.map +1 -0
- package/dist/{path → types/path}/index.d.ts +7 -7
- package/dist/types/path/index.d.ts.map +1 -0
- package/dist/{plans → types/plans}/base.d.ts +8 -8
- package/dist/types/plans/base.d.ts.map +1 -0
- package/dist/{plans → types/plans}/index.d.ts +9 -8
- package/dist/types/plans/index.d.ts.map +1 -0
- package/dist/{plans → types/plans}/types.d.ts +178 -243
- package/dist/types/plans/types.d.ts.map +1 -0
- package/dist/{types.d.ts → types/types.d.ts} +3509 -3426
- package/dist/types/types.d.ts.map +1 -0
- package/dist/{utils → types/utils}/flatten.d.ts +8 -8
- package/dist/types/utils/flatten.d.ts.map +1 -0
- package/dist/{whatsapp → types/whatsapp}/index.d.ts +3 -3
- package/dist/types/whatsapp/index.d.ts.map +1 -0
- package/dist/{whatsapp → types/whatsapp}/requests.d.ts +81 -81
- package/dist/types/whatsapp/requests.d.ts.map +1 -0
- package/dist/{whatsapp → types/whatsapp}/responses.d.ts +169 -169
- package/dist/types/whatsapp/responses.d.ts.map +1 -0
- package/dist/types.js +705 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/flatten.js +43 -0
- package/dist/utils/flatten.js.map +1 -0
- package/dist/whatsapp/index.js +7 -0
- package/dist/whatsapp/index.js.map +1 -0
- package/dist/whatsapp/requests.js +3 -0
- package/dist/whatsapp/requests.js.map +1 -0
- package/dist/whatsapp/responses.js +3 -0
- package/dist/whatsapp/responses.js.map +1 -0
- package/package.json +14 -20
- package/src/environment/base.ts +4 -0
- package/src/index.ts +7 -7
- package/src/plans/base.ts +9 -141
- package/src/plans/index.ts +87 -17
- package/src/plans/types.ts +62 -93
- package/src/types.ts +104 -4
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/policy.d.ts +0 -13
- package/dist/auth/policy.d.ts.map +0 -1
- package/dist/config.cjs.development.js +0 -2093
- package/dist/config.cjs.development.js.map +0 -1
- package/dist/config.cjs.production.min.js +0 -2
- package/dist/config.cjs.production.min.js.map +0 -1
- package/dist/config.esm.js +0 -2078
- package/dist/config.esm.js.map +0 -1
- package/dist/environment/base.d.ts.map +0 -1
- package/dist/environment/decorators.d.ts.map +0 -1
- package/dist/environment/index.d.ts.map +0 -1
- package/dist/environment/types.d.ts.map +0 -1
- package/dist/events/index.d.ts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/uid.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/metrics.d.ts.map +0 -1
- package/dist/path/index.d.ts.map +0 -1
- package/dist/plans/base.d.ts.map +0 -1
- package/dist/plans/index.d.ts.map +0 -1
- package/dist/plans/types.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/flatten.d.ts.map +0 -1
- package/dist/whatsapp/index.d.ts.map +0 -1
- package/dist/whatsapp/requests.d.ts.map +0 -1
- package/dist/whatsapp/responses.d.ts.map +0 -1
package/dist/config.esm.js
DELETED
|
@@ -1,2078 +0,0 @@
|
|
|
1
|
-
var ROLE$1;
|
|
2
|
-
(function (ROLE) {
|
|
3
|
-
ROLE["CLIENT"] = "client";
|
|
4
|
-
ROLE["SELLER"] = "seller";
|
|
5
|
-
ROLE["PRO"] = "pro";
|
|
6
|
-
ROLE["AGENT"] = "agent";
|
|
7
|
-
ROLE["ADMIN"] = "admin";
|
|
8
|
-
ROLE["OWNER"] = "owner";
|
|
9
|
-
ROLE["SUPERADMIN"] = "superadmin";
|
|
10
|
-
})(ROLE$1 || (ROLE$1 = {}));
|
|
11
|
-
/**
|
|
12
|
-
* security context
|
|
13
|
-
*/
|
|
14
|
-
var index$2 = (function (env) {
|
|
15
|
-
var orderedAccess = [ROLE$1.CLIENT, ROLE$1.PRO, ROLE$1.AGENT, ROLE$1.ADMIN, ROLE$1.SUPERADMIN];
|
|
16
|
-
var hasRole = function hasRole(claims) {
|
|
17
|
-
return !claims || !claims[env.security.claims.role] ? false : true;
|
|
18
|
-
};
|
|
19
|
-
var is = function is(claims, role) {
|
|
20
|
-
if (!hasRole(claims)) return false;
|
|
21
|
-
return claims[env.security.claims.role] === role;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Determine if an user can act under another security role
|
|
25
|
-
*
|
|
26
|
-
* @param role
|
|
27
|
-
* @param claims
|
|
28
|
-
*/
|
|
29
|
-
var canActAs = function canActAs(role, claims) {
|
|
30
|
-
var userRole = getRole(claims);
|
|
31
|
-
return orderedAccess.indexOf(role) < orderedAccess.indexOf(userRole);
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Get user role
|
|
35
|
-
* @param claims
|
|
36
|
-
*/
|
|
37
|
-
var getRole = function getRole(claims) {
|
|
38
|
-
return hasRole(claims) ? claims[env.security.claims.role] : null;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Get all the roles on which an user can impersonate
|
|
42
|
-
* @param claims
|
|
43
|
-
*/
|
|
44
|
-
var getRoles = function getRoles(claims) {
|
|
45
|
-
return orderedAccess.filter(function (role) {
|
|
46
|
-
return canActAs(role, claims);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
is: is,
|
|
51
|
-
canActAs: canActAs,
|
|
52
|
-
getRole: getRole,
|
|
53
|
-
getRoles: getRoles
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
var acls = ['project.view', 'project.edit', 'project.create', 'project.delete', 'project.progress.edit',
|
|
58
|
-
// assignations
|
|
59
|
-
'project.assign.pro', 'project.assign.agent', 'project.assign.client', 'project.assign.seller', 'project.unassign.pro', 'project.unassign.agent', 'project.unassign.client', 'project.unassign.seller',
|
|
60
|
-
// other actions
|
|
61
|
-
'project.validate', 'project.status.edit', 'project.pro.prices.view', 'project.enterprise.prices.view', 'project.sync.agenda', 'project.estimation',
|
|
62
|
-
// devis
|
|
63
|
-
'project.devis.create', 'project.devis.edit', 'project.devis.delete',
|
|
64
|
-
// notes
|
|
65
|
-
'project.note.view', 'project.note.create', 'project.note.edit', 'project.note.delete',
|
|
66
|
-
// documents
|
|
67
|
-
'project.document.view', 'project.document.create', 'project.document.edit', 'project.document.delete',
|
|
68
|
-
// medias
|
|
69
|
-
'project.media.view', 'project.media.create', 'project.media.edit', 'project.media.delete',
|
|
70
|
-
// events
|
|
71
|
-
'project.event.view', 'project.event.create', 'project.event.edit',
|
|
72
|
-
/**
|
|
73
|
-
* Devis policy
|
|
74
|
-
*/
|
|
75
|
-
'devis.create', 'devis.view', 'devis.edit', 'devis.delete', 'devis.status.edit', 'devis.email.send', 'devis.validate', 'devis.from.template.create',
|
|
76
|
-
/**
|
|
77
|
-
* Configuration
|
|
78
|
-
*/
|
|
79
|
-
'configuration.view',
|
|
80
|
-
// status
|
|
81
|
-
'configuration.status.view', 'configuration.status.create', 'configuration.status.edit', 'configuration.status.delete',
|
|
82
|
-
// providers
|
|
83
|
-
'configuration.provider.view', 'configuration.provider.edit', 'configuration.provider.delete', 'configuration.provider.create',
|
|
84
|
-
// material providers
|
|
85
|
-
'configuration.material.provider.view', 'configuration.material.provider.edit', 'configuration.material.provider.delete', 'configuration.material.provider.create',
|
|
86
|
-
// materials
|
|
87
|
-
'configuration.material.view', 'configuration.material.edit', 'configuration.material.delete', 'configuration.material.create',
|
|
88
|
-
// operations
|
|
89
|
-
'configuration.operation.view', 'configuration.operation.edit', 'configuration.operation.delete', 'configuration.operation.create',
|
|
90
|
-
// devis templates
|
|
91
|
-
'configuration.devis.template.view', 'configuration.devis.template.edit', 'configuration.devis.template.delete', 'configuration.devis.template.create',
|
|
92
|
-
// team
|
|
93
|
-
'configuration.team.view',
|
|
94
|
-
// users (pro)
|
|
95
|
-
'configuration.pro.edit', 'configuration.pro.delete', 'configuration.pro.create', 'configuration.pro.view',
|
|
96
|
-
// users (agent)
|
|
97
|
-
'configuration.agent.edit', 'configuration.agent.delete', 'configuration.agent.create', 'configuration.agent.view',
|
|
98
|
-
// users (admins)
|
|
99
|
-
'configuration.admin.edit', 'configuration.admin.delete', 'configuration.admin.create', 'configuration.admin.view',
|
|
100
|
-
// enterprise
|
|
101
|
-
'configuration.enterprise.edit', 'configuration.enterprise.delete', 'configuration.enterprise.create', 'configuration.enterprise.view', 'configuration.enterprise.payment.method.add', 'configuration.enterprise.payment.method.delete', 'configuration.enterprise.payment.history.view'];
|
|
102
|
-
|
|
103
|
-
var productionEnvironment = {
|
|
104
|
-
credentials: {
|
|
105
|
-
algolia: {},
|
|
106
|
-
cloudinary: {},
|
|
107
|
-
stripe: {}
|
|
108
|
-
},
|
|
109
|
-
isTest: false,
|
|
110
|
-
name: 'production',
|
|
111
|
-
security: {
|
|
112
|
-
search: {
|
|
113
|
-
// this field is used to set the scope of the record (the enterprise owner of record)
|
|
114
|
-
scopeField: 'searchable(scope)',
|
|
115
|
-
visibleBy: 'visibility',
|
|
116
|
-
ownerField: 'owner'
|
|
117
|
-
},
|
|
118
|
-
claims: {
|
|
119
|
-
enterprise: 'enterprise',
|
|
120
|
-
role: 'role',
|
|
121
|
-
secureSearchApiKey: 'searchKey'
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
realtime: {
|
|
125
|
-
"default": 'enterprises/{enterpriseId}/indexes/{indexName}',
|
|
126
|
-
projects: 'enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}'
|
|
127
|
-
},
|
|
128
|
-
schema: {
|
|
129
|
-
collections: {
|
|
130
|
-
users: 'users',
|
|
131
|
-
enterprises: 'enterprises',
|
|
132
|
-
// tslint:disable-next-line: object-literal-sort-keys
|
|
133
|
-
billing: 'enterprises/{enterpriseId}/billing',
|
|
134
|
-
projects: 'enterprises/{enterpriseId}/projects',
|
|
135
|
-
medias: 'enterprises/{enterpriseId}/projects/{projectId}/medias',
|
|
136
|
-
events: 'enterprises/{enterpriseId}/projects/{projectId}/events',
|
|
137
|
-
notes: 'enterprises/{enterpriseId}/projects/{projectId}/notes',
|
|
138
|
-
visitReports: 'enterprises/{enterpriseId}/projects/{projectId}/visitReports',
|
|
139
|
-
documents: 'enterprises/{enterpriseId}/projects/{projectId}/documents',
|
|
140
|
-
devis: 'enterprises/{enterpriseId}/projects/{projectId}/devis',
|
|
141
|
-
plans: 'enterprises/{enterpriseId}/projects/{projectId}/plans',
|
|
142
|
-
downPayments: 'enterprises/{enterpriseId}/projects/{projectId}/downPayments',
|
|
143
|
-
providers: 'enterprises/{enterpriseId}/providers',
|
|
144
|
-
statuses: 'enterprises/{enterpriseId}/statuses',
|
|
145
|
-
orders: 'enterprises/{enterpriseId}/projects/{projectId}/orders',
|
|
146
|
-
bills: 'enterprises/{enterpriseId}/projects/{projectId}/bills',
|
|
147
|
-
counters: 'counters',
|
|
148
|
-
invoices: 'enterprises/{enterpriseId}/invoices',
|
|
149
|
-
materialsProvider: 'enterprises/{enterpriseId}/materialsProvider',
|
|
150
|
-
materials: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials',
|
|
151
|
-
invitations: 'enterprises/{enterpriseId}/invitations',
|
|
152
|
-
devisTemplates: 'enterprises/{enterpriseId}/devisTemplates',
|
|
153
|
-
estimations: 'enterprises/{enterpriseId}/estimations',
|
|
154
|
-
userNotifications: 'users/{userId}/profiles/{enterpriseId}/notifications',
|
|
155
|
-
histories: 'enterprises/{enterpriseId}/histories',
|
|
156
|
-
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
|
|
157
|
-
indexes: 'enterprises/{enterpriseId}/indexes',
|
|
158
|
-
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
159
|
-
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
|
|
160
|
-
categories: 'enterprises/{enterpriseId}/categories',
|
|
161
|
-
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
|
|
162
|
-
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
|
|
163
|
-
operations: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations',
|
|
164
|
-
operationMaterials: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials',
|
|
165
|
-
devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions',
|
|
166
|
-
enterpriseDocuments: 'enterprises/{enterpriseId}/documents',
|
|
167
|
-
enterpriseMedias: 'enterprises/{enterpriseId}/medias',
|
|
168
|
-
configurations: 'enterprises/{enterpriseId}/configurations',
|
|
169
|
-
logs: 'enterprises/{enterpriseId}/logs',
|
|
170
|
-
systemVersions: 'systemVersions',
|
|
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',
|
|
177
|
-
serviceOrders: 'enterprises/{enterpriseId}/projects/{projectId}/serviceOrders',
|
|
178
|
-
marketplaceOrders: 'enterprises/{enterpriseId}/projects/{projectId}/marketplaceOrders'
|
|
179
|
-
},
|
|
180
|
-
docs: {
|
|
181
|
-
user: 'users/{userId}',
|
|
182
|
-
userProfile: 'users/{userId}/profiles/{enterpriseId}',
|
|
183
|
-
billing: 'enterprises/{enterpriseId}/billing/{billingId}',
|
|
184
|
-
enterprise: 'enterprises/{enterpriseId}',
|
|
185
|
-
global: 'global/stats',
|
|
186
|
-
project: 'enterprises/{enterpriseId}/projects/{projectId}',
|
|
187
|
-
medias: 'enterprises/{enterpriseId}/projects/{projectId}/medias/{mediaId}',
|
|
188
|
-
events: 'enterprises/{enterpriseId}/projects/{projectId}/events/{eventId}',
|
|
189
|
-
notes: 'enterprises/{enterpriseId}/projects/{projectId}/notes/{noteId}',
|
|
190
|
-
visitReports: 'enterprises/{enterpriseId}/projects/{projectId}/visitReports/{visitReportId}',
|
|
191
|
-
documents: 'enterprises/{enterpriseId}/projects/{projectId}/documents/{documentId}',
|
|
192
|
-
devis: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}',
|
|
193
|
-
plans: 'enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}',
|
|
194
|
-
downPayments: 'enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}',
|
|
195
|
-
paymentMethods: 'enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}',
|
|
196
|
-
provider: 'enterprises/{enterpriseId}/providers/{providerId}',
|
|
197
|
-
status: 'enterprises/{enterpriseId}/statuses/{statusId}',
|
|
198
|
-
orders: 'enterprises/{enterpriseId}/projects/{projectId}/orders/{orderId}',
|
|
199
|
-
bills: 'enterprises/{enterpriseId}/projects/{projectId}/bills/{billId}',
|
|
200
|
-
indexes: 'enterprises/{enterpriseId}/projects/{projectId}/indexes/{indexId}',
|
|
201
|
-
counter: 'counters/{counterId}',
|
|
202
|
-
invoice: 'enterprises/{enterpriseId}/invoices/{invoiceId}',
|
|
203
|
-
materialsProvider: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}',
|
|
204
|
-
material: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials/{materialId}',
|
|
205
|
-
invitation: 'enterprises/{enterpriseId}/invitations/{invitationId}',
|
|
206
|
-
devisTemplate: 'enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}',
|
|
207
|
-
estimation: 'enterprises/{enterpriseId}/estimations/{estimationId}',
|
|
208
|
-
userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
|
|
209
|
-
history: 'enterprises/{enterpriseId}/histories/{historyId}',
|
|
210
|
-
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
|
|
211
|
-
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
212
|
-
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
|
|
213
|
-
category: 'enterprises/{enterpriseId}/categories/{categoryId}',
|
|
214
|
-
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
|
|
215
|
-
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
|
|
216
|
-
operation: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}',
|
|
217
|
-
operationMaterial: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials/{operationMaterialId}',
|
|
218
|
-
devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}',
|
|
219
|
-
enterpriseDocument: 'enterprises/{enterpriseId}/documents/{documentId}',
|
|
220
|
-
enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
|
|
221
|
-
configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}',
|
|
222
|
-
log: 'enterprises/{enterpriseId}/logs/{logId}',
|
|
223
|
-
systemVersion: 'systemVersions/{systemVersionId}',
|
|
224
|
-
evaluationConfig: 'enterprises/{enterpriseId}/evaluationsConfig/{evaluationConfigId}',
|
|
225
|
-
evaluation: 'enterprises/{enterpriseId}/evaluations/{evaluationId}',
|
|
226
|
-
devisCandidate: 'enterprises/{enterpriseId}/projects/{projectId}/devisCandidates/{devisCandidateId}',
|
|
227
|
-
workOrder: 'enterprises/{enterpriseId}/workOrders/{workOrderId}',
|
|
228
|
-
candidature: 'enterprises/{enterpriseId}/projects/{projectId}/candidatures/{candidatureId}',
|
|
229
|
-
serviceOrder: 'enterprises/{enterpriseId}/projects/{projectId}/serviceOrders/{serviceOrderId}',
|
|
230
|
-
marketplaceOrder: 'enterprises/{enterpriseId}/projects/{projectId}/marketplaceOrders/{marketplaceOrderId}'
|
|
231
|
-
},
|
|
232
|
-
indexes: {
|
|
233
|
-
// users
|
|
234
|
-
admins: 'admins',
|
|
235
|
-
agents: 'agents',
|
|
236
|
-
pros: 'pros',
|
|
237
|
-
sellers: 'sellers',
|
|
238
|
-
clients: 'clients',
|
|
239
|
-
// projects
|
|
240
|
-
projects: 'projects',
|
|
241
|
-
medias: 'projects-medias',
|
|
242
|
-
events: 'projects-events',
|
|
243
|
-
devis: 'projects-devis',
|
|
244
|
-
// configuration
|
|
245
|
-
providers: 'providers',
|
|
246
|
-
materials: 'materials',
|
|
247
|
-
operations: 'operations',
|
|
248
|
-
operationsMaterials: 'operations-materials',
|
|
249
|
-
estimations: 'estimations',
|
|
250
|
-
nomenclatures: 'nomenclatures',
|
|
251
|
-
workOrders: 'workOrders',
|
|
252
|
-
// used only for managment
|
|
253
|
-
systemMaterials: 'system-materials',
|
|
254
|
-
systemOperations: 'system-operations',
|
|
255
|
-
systemOperationsMaterials: 'system-operations-materials',
|
|
256
|
-
systemMaterialsProvider: 'system-materials-provider',
|
|
257
|
-
systemStatus: 'system-status',
|
|
258
|
-
systemNomenclatures: 'system-nomenclatures',
|
|
259
|
-
systemCategories: 'system-categories'
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
search: {
|
|
263
|
-
users: {
|
|
264
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
265
|
-
attributesForFaceting: ['active', 'searchable(scope)'],
|
|
266
|
-
maxValuesPerFacet: 1000,
|
|
267
|
-
maxFacetHits: 100
|
|
268
|
-
},
|
|
269
|
-
agents: {
|
|
270
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
271
|
-
attributesForFaceting: ['active', 'isLeader', 'leader', 'searchable(userId)', 'has_leader', 'searchable(email)', 'searchable(scope)', 'status'],
|
|
272
|
-
maxValuesPerFacet: 1000,
|
|
273
|
-
maxFacetHits: 100
|
|
274
|
-
},
|
|
275
|
-
pros: {
|
|
276
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
277
|
-
attributesForFaceting: ['active', 'searchable(userId)', 'searchable(email)', 'searchable(specialities)', 'searchable(skills)', 'searchable(regions)', 'searchable(scope)', 'status', 'siren', 'searchable(leaderId)'],
|
|
278
|
-
maxValuesPerFacet: 1000,
|
|
279
|
-
maxFacetHits: 100
|
|
280
|
-
},
|
|
281
|
-
admins: {
|
|
282
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle', 'status'],
|
|
283
|
-
attributesForFaceting: ['active', 'searchable(email)', 'searchable(userId)', 'searchable(scope)', 'status'],
|
|
284
|
-
maxValuesPerFacet: 1000,
|
|
285
|
-
maxFacetHits: 100
|
|
286
|
-
},
|
|
287
|
-
sellers: {
|
|
288
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
289
|
-
attributesForFaceting: ['active', 'isLeader', 'leader', 'has_leader', 'searchable(userId)', 'searchable(email)', 'searchable(provider)', 'searchable(scope)', 'status'],
|
|
290
|
-
maxValuesPerFacet: 1000,
|
|
291
|
-
maxFacetHits: 100
|
|
292
|
-
},
|
|
293
|
-
clients: {
|
|
294
|
-
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile'],
|
|
295
|
-
attributesForFaceting: ['active', 'userId', 'searchable(email)', 'searchable(scope)'],
|
|
296
|
-
maxValuesPerFacet: 1000,
|
|
297
|
-
maxFacetHits: 100
|
|
298
|
-
},
|
|
299
|
-
providers: {
|
|
300
|
-
searchableAttributes: ['name', 'contact.name', 'contact.email', 'address', 'siret'],
|
|
301
|
-
attributesForFaceting: ['tva', 'commission.enterprise', 'commission.pro', 'commission.provider', 'searchable(scope)'],
|
|
302
|
-
maxValuesPerFacet: 1000,
|
|
303
|
-
maxFacetHits: 100
|
|
304
|
-
},
|
|
305
|
-
statuses: {
|
|
306
|
-
searchableAttributes: ['name'],
|
|
307
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(forDashboard)', 'searchable(default)', 'searchable(locked)'],
|
|
308
|
-
ranking: ['asc(order)', 'asc(createdAt)'],
|
|
309
|
-
maxValuesPerFacet: 1000,
|
|
310
|
-
maxFacetHits: 100
|
|
311
|
-
},
|
|
312
|
-
materials: {
|
|
313
|
-
searchableAttributes: ['name', 'unitPrice', 'provider'],
|
|
314
|
-
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id', 'supplier.id'],
|
|
315
|
-
ranking: ['asc(name)'],
|
|
316
|
-
maxValuesPerFacet: 1000,
|
|
317
|
-
maxFacetHits: 100
|
|
318
|
-
},
|
|
319
|
-
operations: {
|
|
320
|
-
searchableAttributes: ['name', 'unitPrice', 'objectID'],
|
|
321
|
-
attributesForFaceting: ['unitPrice', 'searchable(lot)', 'searchable(scope)', 'searchable(catalogId)', 'searchable(category)'],
|
|
322
|
-
maxValuesPerFacet: 1000,
|
|
323
|
-
maxFacetHits: 100
|
|
324
|
-
},
|
|
325
|
-
operationsMaterials: {
|
|
326
|
-
searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
|
|
327
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)', 'searchable(externalId)'],
|
|
328
|
-
ranking: ['asc(order)'],
|
|
329
|
-
maxValuesPerFacet: 1000,
|
|
330
|
-
maxFacetHits: 100
|
|
331
|
-
},
|
|
332
|
-
projects: {
|
|
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', 'workOrderId.region', 'workOrderId.skills'],
|
|
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)', 'searchable(workOrderId.region)', 'searchable(workOrderId.skills)', 'searchable(professionals)'],
|
|
335
|
-
ranking: ['attribute', 'desc(updatedAt)', 'proximity', 'typo', 'geo', 'words', 'filters', 'exact'],
|
|
336
|
-
maxValuesPerFacet: 1000,
|
|
337
|
-
maxFacetHits: 100
|
|
338
|
-
},
|
|
339
|
-
workOrders: {
|
|
340
|
-
searchableAttributes: ['reference', 'address', 'estimatedPrice', 'owner.displayName'],
|
|
341
|
-
attributesForFaceting: ['owner', 'searchable(scope)', 'searchable(priority)', 'searchable(status)', 'searchable(owner.userId)', 'searchable(region)', 'searchable(agenceName)', 'searchable(skills)', 'searchable(client)'],
|
|
342
|
-
ranking: ['desc(createdAt)'],
|
|
343
|
-
maxValuesPerFacet: 1000,
|
|
344
|
-
maxFacetHits: 100
|
|
345
|
-
},
|
|
346
|
-
medias: {
|
|
347
|
-
searchableAttributes: ['name'],
|
|
348
|
-
attributesForFaceting: ['owner', 'searchable(tags)', 'projectId', 'searchable(scope)', 'createdDate'],
|
|
349
|
-
ranking: ['desc(createdAt)'],
|
|
350
|
-
maxValuesPerFacet: 1000,
|
|
351
|
-
maxFacetHits: 100
|
|
352
|
-
},
|
|
353
|
-
devis: {
|
|
354
|
-
searchableAttributes: ['name', 'status'],
|
|
355
|
-
attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)', 'pdf_generated'],
|
|
356
|
-
ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
|
|
357
|
-
maxValuesPerFacet: 1000,
|
|
358
|
-
maxFacetHits: 100
|
|
359
|
-
},
|
|
360
|
-
events: {
|
|
361
|
-
searchableAttributes: ['title', 'type'],
|
|
362
|
-
attributesForFaceting: ['type', 'searchable(start)', 'searchable(end)', 'owner', 'projectId', 'searchable(scope)'],
|
|
363
|
-
ranking: ['desc(start)'],
|
|
364
|
-
maxValuesPerFacet: 1000,
|
|
365
|
-
maxFacetHits: 100
|
|
366
|
-
},
|
|
367
|
-
systemMaterials: {
|
|
368
|
-
searchableAttributes: ['name', 'unitPrice'],
|
|
369
|
-
attributesForFaceting: ['unitPrice', 'searchable(provider)', 'searchable(category)'],
|
|
370
|
-
ranking: ['desc(updatedAt)'],
|
|
371
|
-
maxValuesPerFacet: 1000,
|
|
372
|
-
maxFacetHits: 100
|
|
373
|
-
},
|
|
374
|
-
systemOperations: {
|
|
375
|
-
searchableAttributes: ['name', 'unitPrice'],
|
|
376
|
-
attributesForFaceting: ['searchable(lot)'],
|
|
377
|
-
ranking: ['desc(updatedAt)'],
|
|
378
|
-
maxValuesPerFacet: 1000,
|
|
379
|
-
maxFacetHits: 100
|
|
380
|
-
},
|
|
381
|
-
systemOperationsMaterials: {
|
|
382
|
-
searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
|
|
383
|
-
attributesForFaceting: ['searchable(provider)', 'searchable(optId)'],
|
|
384
|
-
ranking: ['asc(order)'],
|
|
385
|
-
maxValuesPerFacet: 1000,
|
|
386
|
-
maxFacetHits: 100
|
|
387
|
-
},
|
|
388
|
-
systemMaterialsProvider: {
|
|
389
|
-
searchableAttributes: ['name', 'status'],
|
|
390
|
-
attributesForFaceting: ['searchable(status)', 'searchable(identifier)', 'searchable(addMaterials)', 'searchable(editable)', 'searchable(type)'],
|
|
391
|
-
ranking: ['desc(updatedAt)'],
|
|
392
|
-
maxValuesPerFacet: 1000,
|
|
393
|
-
maxFacetHits: 100
|
|
394
|
-
},
|
|
395
|
-
systemStatus: {
|
|
396
|
-
searchableAttributes: ['name', 'color'],
|
|
397
|
-
attributesForFaceting: ['searchable(forDashboard)', 'searchable(default)'],
|
|
398
|
-
ranking: ['asc(order)'],
|
|
399
|
-
maxValuesPerFacet: 1000,
|
|
400
|
-
maxFacetHits: 100
|
|
401
|
-
},
|
|
402
|
-
systemNomenclatures: {
|
|
403
|
-
searchableAttributes: ['identifier', 'value'],
|
|
404
|
-
attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
|
|
405
|
-
ranking: ['desc(updatedAt)'],
|
|
406
|
-
maxValuesPerFacet: 1000,
|
|
407
|
-
maxFacetHits: 100
|
|
408
|
-
},
|
|
409
|
-
estimations: {
|
|
410
|
-
searchableAttributes: ['name', 'address', 'type', 'typeProject', 'client.displayName', 'client.email', 'client.address', 'client.phone.mobile', 'sellers.displayName', 'sellers.email', 'sellers.phone.mobile', 'provider.name'],
|
|
411
|
-
attributesForFaceting: ['searchable(type)', 'searchable(typeProject)', 'searchable(scope)', 'searchable(owner.userId)'],
|
|
412
|
-
ranking: ['desc(updatedAt)'],
|
|
413
|
-
maxValuesPerFacet: 1000,
|
|
414
|
-
maxFacetHits: 100
|
|
415
|
-
},
|
|
416
|
-
systemCategories: {
|
|
417
|
-
searchableAttributes: ['name'],
|
|
418
|
-
attributesForFaceting: ['searchable(entity)', 'searchable(parent)', 'searchable(provider)'],
|
|
419
|
-
ranking: ['asc(name)'],
|
|
420
|
-
maxValuesPerFacet: 1000,
|
|
421
|
-
maxFacetHits: 100
|
|
422
|
-
},
|
|
423
|
-
nomenclatures: {
|
|
424
|
-
searchableAttributes: ['value'],
|
|
425
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
|
|
426
|
-
ranking: ['asc(value)'],
|
|
427
|
-
maxValuesPerFacet: 1000,
|
|
428
|
-
maxFacetHits: 100
|
|
429
|
-
},
|
|
430
|
-
operationsGroups: {
|
|
431
|
-
searchableAttributes: ['name'],
|
|
432
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(operationsCatalog)'],
|
|
433
|
-
ranking: ['asc(name)'],
|
|
434
|
-
maxValuesPerFacet: 1000,
|
|
435
|
-
maxFacetHits: 100
|
|
436
|
-
},
|
|
437
|
-
workOrder: {
|
|
438
|
-
searchableAttributes: ['reference'],
|
|
439
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(priority)', 'searchable(candidates)', 'searchable(agenceName)', 'searchable(skills)', 'searchable(client)'],
|
|
440
|
-
ranking: ['asc(createdAt)'],
|
|
441
|
-
maxValuesPerFacet: 1000,
|
|
442
|
-
maxFacetHits: 100
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
function _extends() {
|
|
448
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
449
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
450
|
-
var source = arguments[i];
|
|
451
|
-
for (var key in source) {
|
|
452
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
453
|
-
target[key] = source[key];
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
return target;
|
|
458
|
-
};
|
|
459
|
-
return _extends.apply(this, arguments);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
var dev = function dev(base) {
|
|
463
|
-
return _extends({}, base, {
|
|
464
|
-
isTest: true,
|
|
465
|
-
name: 'development'
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
var staging = function staging(base) {
|
|
469
|
-
return _extends({}, base, {
|
|
470
|
-
isTest: false,
|
|
471
|
-
name: 'staging'
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
var test = function test(base) {
|
|
475
|
-
return _extends({}, base, {
|
|
476
|
-
schema: _extends({}, base.schema, {
|
|
477
|
-
indexes: {
|
|
478
|
-
// tslint:disable-next-line: object-literal-sort-keys
|
|
479
|
-
clients: 'tests-clients',
|
|
480
|
-
pros: 'tests-pros',
|
|
481
|
-
agents: 'tests-agents',
|
|
482
|
-
sellers: 'tests-sellers',
|
|
483
|
-
projects: 'tests-projects',
|
|
484
|
-
medias: 'tests-projects-medias',
|
|
485
|
-
events: 'tests-projects-events',
|
|
486
|
-
devis: 'tests-projects-devis',
|
|
487
|
-
admins: 'tests-admins',
|
|
488
|
-
providers: 'tests-providers',
|
|
489
|
-
materials: 'tests-materials',
|
|
490
|
-
operations: 'tests-operations',
|
|
491
|
-
operationsMaterials: 'test-operations-materials',
|
|
492
|
-
materialsProvider: 'materials-provider',
|
|
493
|
-
devisTemplates: 'devis-templates',
|
|
494
|
-
estimations: 'estimations',
|
|
495
|
-
categories: 'categories',
|
|
496
|
-
operationsCatalogs: 'operations-catalogs',
|
|
497
|
-
nomenclatures: 'nomenclatures',
|
|
498
|
-
operationsGroups: 'operations-groups',
|
|
499
|
-
workOrders: 'work-orders',
|
|
500
|
-
// used only for managment
|
|
501
|
-
systemMaterials: 'system-materials',
|
|
502
|
-
systemOperations: 'system-operations',
|
|
503
|
-
systemOperationsMaterials: 'system-operations-materials',
|
|
504
|
-
systemMaterialsProvider: 'system-materials-provider',
|
|
505
|
-
systemStatus: 'test-system-status',
|
|
506
|
-
systemNomenclatures: 'test-system-nomenclatures',
|
|
507
|
-
systemCategories: 'system-categories'
|
|
508
|
-
}
|
|
509
|
-
}),
|
|
510
|
-
isTest: true,
|
|
511
|
-
name: 'test'
|
|
512
|
-
});
|
|
513
|
-
};
|
|
514
|
-
var emulator = function emulator(base) {
|
|
515
|
-
return _extends({}, base, {
|
|
516
|
-
schema: _extends({}, base.schema, {
|
|
517
|
-
indexes: {
|
|
518
|
-
// tslint:disable-next-line: object-literal-sort-keys
|
|
519
|
-
clients: 'emulator-clients',
|
|
520
|
-
pros: 'emulator-pros',
|
|
521
|
-
agents: 'emulator-agents',
|
|
522
|
-
sellers: 'emulator-sellers',
|
|
523
|
-
projects: 'emulator-projects',
|
|
524
|
-
medias: 'emulator-projects-medias',
|
|
525
|
-
events: 'emulator-projects-events',
|
|
526
|
-
devis: 'emulator-projects-devis',
|
|
527
|
-
admins: 'emulator-admins',
|
|
528
|
-
providers: 'emulator-providers',
|
|
529
|
-
materials: 'emulator-materials',
|
|
530
|
-
operations: 'emulator-operations',
|
|
531
|
-
operationsMaterials: 'emulator-operations-materials',
|
|
532
|
-
materialsProvider: 'materials-provider',
|
|
533
|
-
devisTemplates: 'devis-templates',
|
|
534
|
-
estimations: 'estimations',
|
|
535
|
-
categories: 'categories',
|
|
536
|
-
operationsCatalogs: 'operations-catalogs',
|
|
537
|
-
nomenclatures: 'nomenclatures',
|
|
538
|
-
operationsGroups: 'operations-groups',
|
|
539
|
-
workOrders: 'work-orders',
|
|
540
|
-
// used only for managment
|
|
541
|
-
systemMaterials: 'system-materials',
|
|
542
|
-
systemOperations: 'system-operations',
|
|
543
|
-
systemOperationsMaterials: 'system-operations-materials',
|
|
544
|
-
systemMaterialsProvider: 'system-materials-provider',
|
|
545
|
-
systemStatus: 'emulator-system-status',
|
|
546
|
-
systemNomenclatures: 'emulator-system-nomenclatures',
|
|
547
|
-
systemCategories: 'system-categories'
|
|
548
|
-
}
|
|
549
|
-
}),
|
|
550
|
-
isTest: true,
|
|
551
|
-
name: 'emulator'
|
|
552
|
-
});
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
var Environments;
|
|
556
|
-
(function (Environments) {
|
|
557
|
-
Environments["dev"] = "development";
|
|
558
|
-
Environments["production"] = "production";
|
|
559
|
-
Environments["staging"] = "staging";
|
|
560
|
-
Environments["test"] = "test";
|
|
561
|
-
Environments["emulator"] = "emulator";
|
|
562
|
-
})(Environments || (Environments = {}));
|
|
563
|
-
/**
|
|
564
|
-
* Load environment configuration
|
|
565
|
-
*
|
|
566
|
-
* @param envName
|
|
567
|
-
*/
|
|
568
|
-
var getEnv = function getEnv(envName) {
|
|
569
|
-
switch (envName) {
|
|
570
|
-
case Environments.dev:
|
|
571
|
-
return dev(productionEnvironment);
|
|
572
|
-
case Environments.staging:
|
|
573
|
-
return staging(productionEnvironment);
|
|
574
|
-
case Environments.production:
|
|
575
|
-
return productionEnvironment;
|
|
576
|
-
case Environments.test:
|
|
577
|
-
return test(productionEnvironment);
|
|
578
|
-
case Environments.emulator:
|
|
579
|
-
return emulator(productionEnvironment);
|
|
580
|
-
default:
|
|
581
|
-
return productionEnvironment;
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* This functions adds by default objectID and createdAt, updatedAt variables
|
|
587
|
-
*/
|
|
588
|
-
var FactoryCreateFunction = function FactoryCreateFunction() {
|
|
589
|
-
return {
|
|
590
|
-
create: function create(id, data) {
|
|
591
|
-
return _extends({}, data != null && data.createdAt || data != null && data.updatedAt ? {} : {
|
|
592
|
-
createdAt: Date.now()
|
|
593
|
-
}, data != null && data.updatedAt ? {} : {
|
|
594
|
-
updatedAt: Date.now()
|
|
595
|
-
}, {
|
|
596
|
-
objectID: id,
|
|
597
|
-
id: id
|
|
598
|
-
}, data);
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
var helpers = {
|
|
603
|
-
profiles: /*#__PURE__*/FactoryCreateFunction(),
|
|
604
|
-
projects: /*#__PURE__*/FactoryCreateFunction(),
|
|
605
|
-
notes: /*#__PURE__*/FactoryCreateFunction(),
|
|
606
|
-
visitReports: /*#__PURE__*/FactoryCreateFunction(),
|
|
607
|
-
materials: /*#__PURE__*/FactoryCreateFunction(),
|
|
608
|
-
medias: /*#__PURE__*/FactoryCreateFunction(),
|
|
609
|
-
plans: /*#__PURE__*/FactoryCreateFunction(),
|
|
610
|
-
users: /*#__PURE__*/FactoryCreateFunction(),
|
|
611
|
-
payments: /*#__PURE__*/FactoryCreateFunction(),
|
|
612
|
-
status: /*#__PURE__*/FactoryCreateFunction(),
|
|
613
|
-
providers: /*#__PURE__*/FactoryCreateFunction(),
|
|
614
|
-
documents: /*#__PURE__*/FactoryCreateFunction(),
|
|
615
|
-
devis: /*#__PURE__*/FactoryCreateFunction(),
|
|
616
|
-
enterprises: /*#__PURE__*/FactoryCreateFunction(),
|
|
617
|
-
events: /*#__PURE__*/FactoryCreateFunction(),
|
|
618
|
-
orders: /*#__PURE__*/FactoryCreateFunction(),
|
|
619
|
-
bills: /*#__PURE__*/FactoryCreateFunction(),
|
|
620
|
-
billsIssued: /*#__PURE__*/FactoryCreateFunction(),
|
|
621
|
-
billsReceived: /*#__PURE__*/FactoryCreateFunction(),
|
|
622
|
-
materialsProvider: /*#__PURE__*/FactoryCreateFunction(),
|
|
623
|
-
devisTemplate: /*#__PURE__*/FactoryCreateFunction(),
|
|
624
|
-
paymentMethods: /*#__PURE__*/FactoryCreateFunction(),
|
|
625
|
-
estimations: /*#__PURE__*/FactoryCreateFunction(),
|
|
626
|
-
invitations: /*#__PURE__*/FactoryCreateFunction(),
|
|
627
|
-
downPayment: /*#__PURE__*/FactoryCreateFunction(),
|
|
628
|
-
histories: /*#__PURE__*/FactoryCreateFunction(),
|
|
629
|
-
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
630
|
-
nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
|
|
631
|
-
categories: /*#__PURE__*/FactoryCreateFunction(),
|
|
632
|
-
operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
|
|
633
|
-
operations: /*#__PURE__*/FactoryCreateFunction(),
|
|
634
|
-
operationMaterials: /*#__PURE__*/FactoryCreateFunction(),
|
|
635
|
-
operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
|
|
636
|
-
devisVersions: /*#__PURE__*/FactoryCreateFunction(),
|
|
637
|
-
enterpriseDocuments: /*#__PURE__*/FactoryCreateFunction(),
|
|
638
|
-
enterpriseMedias: /*#__PURE__*/FactoryCreateFunction(),
|
|
639
|
-
configurations: /*#__PURE__*/FactoryCreateFunction(),
|
|
640
|
-
systemVersions: /*#__PURE__*/FactoryCreateFunction(),
|
|
641
|
-
evaluationConfig: /*#__PURE__*/FactoryCreateFunction(),
|
|
642
|
-
evaluations: /*#__PURE__*/FactoryCreateFunction(),
|
|
643
|
-
indexes: /*#__PURE__*/FactoryCreateFunction(),
|
|
644
|
-
devisCandidates: /*#__PURE__*/FactoryCreateFunction(),
|
|
645
|
-
workOrders: /*#__PURE__*/FactoryCreateFunction(),
|
|
646
|
-
candidatures: /*#__PURE__*/FactoryCreateFunction(),
|
|
647
|
-
serviceOrders: /*#__PURE__*/FactoryCreateFunction(),
|
|
648
|
-
marketplaceOrders: /*#__PURE__*/FactoryCreateFunction()
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* SEE --> https://gist.github.com/mikelehen/3596a30bd69384624c11
|
|
653
|
-
*
|
|
654
|
-
* Generator that creates 20-character string identifiers with the following properties:
|
|
655
|
-
*
|
|
656
|
-
* 1. They're based on timestamp so that they sort *after* any existing ids.
|
|
657
|
-
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide.
|
|
658
|
-
* 3. They sort *lexicographically* (timestamp converted to chars which will sort)
|
|
659
|
-
* 4. They're monotonically increasing. This is done by storing previous random bits
|
|
660
|
-
* increasing them only by one.
|
|
661
|
-
*/
|
|
662
|
-
// ASCII ordered base64 web safe chars.
|
|
663
|
-
var ASCII_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
664
|
-
var uid = {
|
|
665
|
-
/**
|
|
666
|
-
* Generate
|
|
667
|
-
* Generates uid push identifier.
|
|
668
|
-
*/
|
|
669
|
-
generate: /*#__PURE__*/function () {
|
|
670
|
-
// Timestamp of last push, used to prevent local
|
|
671
|
-
// collisions if you push twice in one ms.
|
|
672
|
-
var lastPushTime = 0;
|
|
673
|
-
// We generate 72-bits of randomness which get
|
|
674
|
-
// turned into 12 characters and appended to the
|
|
675
|
-
// timestamp to prevent collisions with other clients.
|
|
676
|
-
// We store the last characters we generated because
|
|
677
|
-
// in the event of a collision, we'll use those same
|
|
678
|
-
// characters except "incremented" by one.
|
|
679
|
-
var lastRandChars = [];
|
|
680
|
-
return function () {
|
|
681
|
-
var now = new Date().getTime();
|
|
682
|
-
var duplicateTime = now === lastPushTime;
|
|
683
|
-
lastPushTime = now;
|
|
684
|
-
var timeStampChars = new Array(8);
|
|
685
|
-
var i;
|
|
686
|
-
for (i = 7; i >= 0; i--) {
|
|
687
|
-
timeStampChars[i] = ASCII_CHARS.charAt(now % 62);
|
|
688
|
-
// NOTE: Can't use << here because javascript
|
|
689
|
-
// will convert to int and lose the upper bits.
|
|
690
|
-
now = Math.floor(now / 62);
|
|
691
|
-
}
|
|
692
|
-
if (now !== 0) throw new Error('We should have converted the entire timestamp.');
|
|
693
|
-
var id = timeStampChars.join('');
|
|
694
|
-
if (!duplicateTime) {
|
|
695
|
-
for (i = 0; i < 12; i++) {
|
|
696
|
-
lastRandChars[i] = Math.floor(Math.random() * 62);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
// If the timestamp hasn't changed since
|
|
700
|
-
// last push, use the same random number,
|
|
701
|
-
// except incremented by 1.
|
|
702
|
-
else {
|
|
703
|
-
for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
|
|
704
|
-
lastRandChars[i] = 0;
|
|
705
|
-
}
|
|
706
|
-
lastRandChars[i]++;
|
|
707
|
-
}
|
|
708
|
-
for (i = 0; i < 12; i++) {
|
|
709
|
-
id += ASCII_CHARS.charAt(lastRandChars[i]);
|
|
710
|
-
}
|
|
711
|
-
if (id.length !== 20) throw new Error('Length should be 20.');
|
|
712
|
-
return id;
|
|
713
|
-
};
|
|
714
|
-
}(),
|
|
715
|
-
/**
|
|
716
|
-
* Timestamp
|
|
717
|
-
* Gets timestamp from provided uid.
|
|
718
|
-
*/
|
|
719
|
-
timestamp: /*#__PURE__*/function () {
|
|
720
|
-
return function (id, asDate) {
|
|
721
|
-
var time = 0;
|
|
722
|
-
var data = id.substring(0, 8);
|
|
723
|
-
for (var i = 0; i < 8; i++) {
|
|
724
|
-
time = time * 62 + ASCII_CHARS.indexOf(data[i]);
|
|
725
|
-
}
|
|
726
|
-
if (asDate) return new Date(time);
|
|
727
|
-
return time;
|
|
728
|
-
};
|
|
729
|
-
}()
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
var reversePathName = function reversePathName(path, env) {
|
|
733
|
-
var pathParts = path.split('/');
|
|
734
|
-
var pathnames = Object.keys(env.schema.docs).filter(function (pathName) {
|
|
735
|
-
// only paths with same amount of parts should match
|
|
736
|
-
// @ts-ignore
|
|
737
|
-
return env.schema.docs[pathName].split('/').length === pathParts.length;
|
|
738
|
-
});
|
|
739
|
-
var pathvalues = Object.values(env.schema.docs).filter(function (pathvalue) {
|
|
740
|
-
// only paths with same amount of parts should match
|
|
741
|
-
return pathvalue.split('/').length === pathParts.length;
|
|
742
|
-
});
|
|
743
|
-
var index = pathvalues.findIndex(function (p) {
|
|
744
|
-
var parts = p.split('/');
|
|
745
|
-
var fulfilledParts = parts.map(function (part, idx) {
|
|
746
|
-
return /\{(\w+)\}/.test(part) ? pathParts[idx] : part;
|
|
747
|
-
}).join('/');
|
|
748
|
-
return fulfilledParts === path;
|
|
749
|
-
});
|
|
750
|
-
if (index > -1) return pathnames[index];
|
|
751
|
-
return null;
|
|
752
|
-
};
|
|
753
|
-
var getPath = function getPath(path, params) {
|
|
754
|
-
if (params === void 0) {
|
|
755
|
-
params = {};
|
|
756
|
-
}
|
|
757
|
-
var regex = new RegExp(/\{(\w+)\}*/gm);
|
|
758
|
-
var m;
|
|
759
|
-
var generatedPath = path.toString();
|
|
760
|
-
do {
|
|
761
|
-
m = regex.exec(generatedPath);
|
|
762
|
-
if (m) {
|
|
763
|
-
var _m = m,
|
|
764
|
-
match = _m[0],
|
|
765
|
-
paramName = _m[1];
|
|
766
|
-
if (!params.hasOwnProperty(paramName)) {
|
|
767
|
-
throw new Error("Param \"" + paramName + "\" is missing from path params");
|
|
768
|
-
}
|
|
769
|
-
generatedPath = generatedPath.split(match).join(String(params[paramName]));
|
|
770
|
-
}
|
|
771
|
-
} while (m !== null);
|
|
772
|
-
return generatedPath;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
*
|
|
777
|
-
* @param envName
|
|
778
|
-
* @param params
|
|
779
|
-
*/
|
|
780
|
-
var createProducts = function createProducts(params) {
|
|
781
|
-
var products = {
|
|
782
|
-
classic: {
|
|
783
|
-
id: params.classic.id,
|
|
784
|
-
internal: 'classic',
|
|
785
|
-
product: {
|
|
786
|
-
id: params.classic.id,
|
|
787
|
-
name: 'Abonnement Articho',
|
|
788
|
-
description: '',
|
|
789
|
-
type: 'service',
|
|
790
|
-
price: 159,
|
|
791
|
-
main: true,
|
|
792
|
-
active: true,
|
|
793
|
-
isPrivate: false,
|
|
794
|
-
rating: 3,
|
|
795
|
-
order: 3,
|
|
796
|
-
includes: {
|
|
797
|
-
maxAdminUsers: 1,
|
|
798
|
-
maxAgentUsers: 0,
|
|
799
|
-
maxProUsers: 0,
|
|
800
|
-
maxSellerUsers: 0,
|
|
801
|
-
authorizationManagement: true,
|
|
802
|
-
dashboard: true,
|
|
803
|
-
accounting: true,
|
|
804
|
-
projectStorage: true,
|
|
805
|
-
customCatalog: true,
|
|
806
|
-
customConfig: true,
|
|
807
|
-
exportReports: true,
|
|
808
|
-
externalApiIntegration: true,
|
|
809
|
-
support: true
|
|
810
|
-
},
|
|
811
|
-
plans: Object.values(params.classic.tariffs).map(function (t) {
|
|
812
|
-
return t.id;
|
|
813
|
-
}),
|
|
814
|
-
tax_rates: params.classic.tax_rates
|
|
815
|
-
},
|
|
816
|
-
tariffs: params.classic.tariffs
|
|
817
|
-
},
|
|
818
|
-
standard: {
|
|
819
|
-
id: params.standard.id,
|
|
820
|
-
internal: 'standard',
|
|
821
|
-
product: {
|
|
822
|
-
id: params.standard.id,
|
|
823
|
-
name: 'Standard',
|
|
824
|
-
description: 'Pour les entreprises unipersonnelles',
|
|
825
|
-
type: 'service',
|
|
826
|
-
price: 69,
|
|
827
|
-
main: true,
|
|
828
|
-
active: true,
|
|
829
|
-
isPrivate: true,
|
|
830
|
-
rating: 1,
|
|
831
|
-
order: 1,
|
|
832
|
-
includes: {
|
|
833
|
-
maxAdminUsers: null,
|
|
834
|
-
maxAgentUsers: null,
|
|
835
|
-
maxProUsers: null,
|
|
836
|
-
maxSellerUsers: null,
|
|
837
|
-
authorizationManagement: true,
|
|
838
|
-
dashboard: true,
|
|
839
|
-
accounting: true,
|
|
840
|
-
projectStorage: true,
|
|
841
|
-
customCatalog: true,
|
|
842
|
-
customConfig: true,
|
|
843
|
-
exportReports: true,
|
|
844
|
-
externalApiIntegration: true,
|
|
845
|
-
support: true
|
|
846
|
-
},
|
|
847
|
-
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
848
|
-
return t.id;
|
|
849
|
-
}),
|
|
850
|
-
tax_rates: params.standard.tax_rates
|
|
851
|
-
},
|
|
852
|
-
tariffs: params.standard.tariffs
|
|
853
|
-
},
|
|
854
|
-
plus: {
|
|
855
|
-
id: params.plus.id,
|
|
856
|
-
internal: 'plus',
|
|
857
|
-
product: {
|
|
858
|
-
id: params.plus.id,
|
|
859
|
-
name: 'Plus',
|
|
860
|
-
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
861
|
-
type: 'service',
|
|
862
|
-
price: 159,
|
|
863
|
-
main: true,
|
|
864
|
-
active: true,
|
|
865
|
-
isPrivate: true,
|
|
866
|
-
rating: 2,
|
|
867
|
-
order: 2,
|
|
868
|
-
includes: {
|
|
869
|
-
maxAdminUsers: null,
|
|
870
|
-
maxAgentUsers: null,
|
|
871
|
-
maxProUsers: null,
|
|
872
|
-
maxSellerUsers: null,
|
|
873
|
-
authorizationManagement: true,
|
|
874
|
-
dashboard: true,
|
|
875
|
-
accounting: true,
|
|
876
|
-
projectStorage: true,
|
|
877
|
-
customCatalog: true,
|
|
878
|
-
customConfig: true,
|
|
879
|
-
exportReports: true,
|
|
880
|
-
externalApiIntegration: true,
|
|
881
|
-
support: true
|
|
882
|
-
},
|
|
883
|
-
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
884
|
-
return t.id;
|
|
885
|
-
}),
|
|
886
|
-
tax_rates: params.plus.tax_rates
|
|
887
|
-
},
|
|
888
|
-
tariffs: params.plus.tariffs
|
|
889
|
-
}
|
|
890
|
-
// test_1: {
|
|
891
|
-
// id: params.test_1.id,
|
|
892
|
-
// internal: 'test_1',
|
|
893
|
-
// product: {
|
|
894
|
-
// id: params.test_1.id,
|
|
895
|
-
// name: 'Test 1',
|
|
896
|
-
// description: '',
|
|
897
|
-
// type: 'service',
|
|
898
|
-
// price: 50,
|
|
899
|
-
// main: true,
|
|
900
|
-
// active: true,
|
|
901
|
-
// isPrivate: false,
|
|
902
|
-
// rating: 1,
|
|
903
|
-
// order: 4,
|
|
904
|
-
// includes: {
|
|
905
|
-
// maxAdminUsers: 1,
|
|
906
|
-
// maxAgentUsers: 0,
|
|
907
|
-
// maxProUsers: 0,
|
|
908
|
-
// maxSellerUsers: 0,
|
|
909
|
-
// authorizationManagement: true,
|
|
910
|
-
// dashboard: true,
|
|
911
|
-
// accounting: true,
|
|
912
|
-
// projectStorage: true,
|
|
913
|
-
// customCatalog: true,
|
|
914
|
-
// customConfig: true,
|
|
915
|
-
// exportReports: true,
|
|
916
|
-
// externalApiIntegration: true,
|
|
917
|
-
// support: true,
|
|
918
|
-
// },
|
|
919
|
-
// plans: Object.values(params.test_1.tariffs).map(t => t.id),
|
|
920
|
-
// tax_rates: params.test_1.tax_rates,
|
|
921
|
-
// },
|
|
922
|
-
// tariffs: params.test_1.tariffs,
|
|
923
|
-
// },
|
|
924
|
-
// test_2: {
|
|
925
|
-
// id: params.test_2.id,
|
|
926
|
-
// internal: 'test_2',
|
|
927
|
-
// product: {
|
|
928
|
-
// id: params.test_2.id,
|
|
929
|
-
// name: 'Test 2',
|
|
930
|
-
// description: '',
|
|
931
|
-
// type: 'service',
|
|
932
|
-
// price: 100,
|
|
933
|
-
// main: true,
|
|
934
|
-
// active: true,
|
|
935
|
-
// isPrivate: false,
|
|
936
|
-
// rating: 2,
|
|
937
|
-
// order: 5,
|
|
938
|
-
// includes: {
|
|
939
|
-
// maxAdminUsers: 1,
|
|
940
|
-
// maxAgentUsers: 0,
|
|
941
|
-
// maxProUsers: 0,
|
|
942
|
-
// maxSellerUsers: 0,
|
|
943
|
-
// authorizationManagement: true,
|
|
944
|
-
// dashboard: true,
|
|
945
|
-
// accounting: true,
|
|
946
|
-
// projectStorage: true,
|
|
947
|
-
// customCatalog: true,
|
|
948
|
-
// customConfig: true,
|
|
949
|
-
// exportReports: true,
|
|
950
|
-
// externalApiIntegration: true,
|
|
951
|
-
// support: true,
|
|
952
|
-
// },
|
|
953
|
-
// plans: Object.values(params.test_2.tariffs).map(t => t.id),
|
|
954
|
-
// tax_rates: params.test_2.tax_rates,
|
|
955
|
-
// },
|
|
956
|
-
// tariffs: params.test_2.tariffs,
|
|
957
|
-
// },
|
|
958
|
-
// test_3: {
|
|
959
|
-
// id: params.test_3.id,
|
|
960
|
-
// internal: 'test_3',
|
|
961
|
-
// product: {
|
|
962
|
-
// id: params.test_3.id,
|
|
963
|
-
// name: 'Test 3',
|
|
964
|
-
// description: '',
|
|
965
|
-
// type: 'service',
|
|
966
|
-
// price: 80,
|
|
967
|
-
// main: true,
|
|
968
|
-
// active: true,
|
|
969
|
-
// isPrivate: false,
|
|
970
|
-
// rating: 3,
|
|
971
|
-
// order: 6,
|
|
972
|
-
// includes: {
|
|
973
|
-
// maxAdminUsers: null,
|
|
974
|
-
// maxAgentUsers: null,
|
|
975
|
-
// maxProUsers: null,
|
|
976
|
-
// maxSellerUsers: null,
|
|
977
|
-
// authorizationManagement: true,
|
|
978
|
-
// dashboard: true,
|
|
979
|
-
// accounting: true,
|
|
980
|
-
// projectStorage: true,
|
|
981
|
-
// customCatalog: true,
|
|
982
|
-
// customConfig: true,
|
|
983
|
-
// exportReports: true,
|
|
984
|
-
// externalApiIntegration: true,
|
|
985
|
-
// support: true,
|
|
986
|
-
// },
|
|
987
|
-
// plans: Object.values(params.test_3.tariffs).map(t => t.id),
|
|
988
|
-
// tax_rates: params.test_3.tax_rates,
|
|
989
|
-
// },
|
|
990
|
-
// tariffs: params.test_3.tariffs,
|
|
991
|
-
// },
|
|
992
|
-
// test_4: {
|
|
993
|
-
// id: params.test_4.id,
|
|
994
|
-
// internal: 'test_4',
|
|
995
|
-
// product: {
|
|
996
|
-
// id: params.test_4.id,
|
|
997
|
-
// name: 'Test 4',
|
|
998
|
-
// description: '',
|
|
999
|
-
// type: 'service',
|
|
1000
|
-
// price: 65,
|
|
1001
|
-
// main: true,
|
|
1002
|
-
// active: true,
|
|
1003
|
-
// isPrivate: false,
|
|
1004
|
-
// rating: 3,
|
|
1005
|
-
// order: 7,
|
|
1006
|
-
// includes: {
|
|
1007
|
-
// maxAdminUsers: 3,
|
|
1008
|
-
// maxAgentUsers: 3,
|
|
1009
|
-
// maxProUsers: 3,
|
|
1010
|
-
// maxSellerUsers: 3,
|
|
1011
|
-
// authorizationManagement: true,
|
|
1012
|
-
// dashboard: true,
|
|
1013
|
-
// accounting: true,
|
|
1014
|
-
// projectStorage: true,
|
|
1015
|
-
// customCatalog: true,
|
|
1016
|
-
// customConfig: true,
|
|
1017
|
-
// exportReports: true,
|
|
1018
|
-
// externalApiIntegration: true,
|
|
1019
|
-
// support: true,
|
|
1020
|
-
// },
|
|
1021
|
-
// plans: Object.values(params.test_4.tariffs).map(t => t.id),
|
|
1022
|
-
// tax_rates: params.test_4.tax_rates,
|
|
1023
|
-
// },
|
|
1024
|
-
// tariffs: params.test_4.tariffs,
|
|
1025
|
-
// },
|
|
1026
|
-
};
|
|
1027
|
-
return products;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
var testing = {
|
|
1031
|
-
classic: {
|
|
1032
|
-
id: 'prod_KzmO4rORyWl8cA',
|
|
1033
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1034
|
-
tariffs: {
|
|
1035
|
-
base: {
|
|
1036
|
-
id: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1037
|
-
price: 159,
|
|
1038
|
-
usageType: 'licensed',
|
|
1039
|
-
type: 'base'
|
|
1040
|
-
},
|
|
1041
|
-
additionalAdmin: {
|
|
1042
|
-
id: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
|
|
1043
|
-
price: 30,
|
|
1044
|
-
usageType: 'metered',
|
|
1045
|
-
type: 'extra_user'
|
|
1046
|
-
},
|
|
1047
|
-
additionalAgent: {
|
|
1048
|
-
id: 'price_1KJmpiLFzcsAA7x6gFBgAXkr',
|
|
1049
|
-
price: 20,
|
|
1050
|
-
usageType: 'metered',
|
|
1051
|
-
type: 'extra_user'
|
|
1052
|
-
},
|
|
1053
|
-
additionalPro: {
|
|
1054
|
-
id: 'price_1KJmpiLFzcsAA7x6JxTnlLC8',
|
|
1055
|
-
price: 10,
|
|
1056
|
-
usageType: 'metered',
|
|
1057
|
-
type: 'extra_user'
|
|
1058
|
-
},
|
|
1059
|
-
additionalSeller: {
|
|
1060
|
-
id: 'price_1KJmpiLFzcsAA7x6XS9PBgQo',
|
|
1061
|
-
price: 2,
|
|
1062
|
-
usageType: 'metered',
|
|
1063
|
-
type: 'extra_user'
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
standard: {
|
|
1068
|
-
id: 'prod_KzmEyS3UQ5lbnz',
|
|
1069
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1070
|
-
tariffs: {
|
|
1071
|
-
base: {
|
|
1072
|
-
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1073
|
-
price: 69,
|
|
1074
|
-
usageType: 'licensed',
|
|
1075
|
-
type: 'base'
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
// prices: {
|
|
1079
|
-
// monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1080
|
-
// additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1081
|
-
// },
|
|
1082
|
-
// additionalUserPrice: 10,
|
|
1083
|
-
},
|
|
1084
|
-
plus: {
|
|
1085
|
-
id: 'prod_KzmyY1ysEOeK93',
|
|
1086
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1087
|
-
tariffs: {
|
|
1088
|
-
base: {
|
|
1089
|
-
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1090
|
-
price: 159,
|
|
1091
|
-
usageType: 'licensed',
|
|
1092
|
-
type: 'base'
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
// test_1: {
|
|
1097
|
-
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1098
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1099
|
-
// tariffs: {
|
|
1100
|
-
// base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
|
|
1101
|
-
// additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
|
|
1102
|
-
// additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1103
|
-
// additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1104
|
-
// additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
|
|
1105
|
-
// },
|
|
1106
|
-
// },
|
|
1107
|
-
// test_2: {
|
|
1108
|
-
// id: 'prod_L2xmEk7gqqRJtS',
|
|
1109
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1110
|
-
// tariffs: {
|
|
1111
|
-
// base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
|
|
1112
|
-
// additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
|
|
1113
|
-
// additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
|
|
1114
|
-
// additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1115
|
-
// additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1116
|
-
// },
|
|
1117
|
-
// },
|
|
1118
|
-
// test_3: {
|
|
1119
|
-
// id: 'prod_L2xnCHGi6QNgX8',
|
|
1120
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1121
|
-
// tariffs: {
|
|
1122
|
-
// base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
|
|
1123
|
-
// },
|
|
1124
|
-
// },
|
|
1125
|
-
// test_4: {
|
|
1126
|
-
// id: 'prod_L2yWF4ssugw8Ln',
|
|
1127
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1128
|
-
// tariffs: {
|
|
1129
|
-
// base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
|
|
1130
|
-
// additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
|
|
1131
|
-
// additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1132
|
-
// additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
|
|
1133
|
-
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1134
|
-
// },
|
|
1135
|
-
// },
|
|
1136
|
-
};
|
|
1137
|
-
var production = {
|
|
1138
|
-
classic: {
|
|
1139
|
-
id: 'prod_KzmYFhrWXrzWdR',
|
|
1140
|
-
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1141
|
-
tariffs: {
|
|
1142
|
-
base: {
|
|
1143
|
-
id: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1144
|
-
price: 159,
|
|
1145
|
-
usageType: 'licensed',
|
|
1146
|
-
type: 'base'
|
|
1147
|
-
},
|
|
1148
|
-
additionalAdmin: {
|
|
1149
|
-
id: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
|
|
1150
|
-
price: 30,
|
|
1151
|
-
usageType: 'metered',
|
|
1152
|
-
type: 'extra_user'
|
|
1153
|
-
},
|
|
1154
|
-
additionalAgent: {
|
|
1155
|
-
id: 'price_1KJmzNLFzcsAA7x6DeUQScKY',
|
|
1156
|
-
price: 20,
|
|
1157
|
-
usageType: 'metered',
|
|
1158
|
-
type: 'extra_user'
|
|
1159
|
-
},
|
|
1160
|
-
additionalPro: {
|
|
1161
|
-
id: 'price_1KJmzNLFzcsAA7x695wsj6rA',
|
|
1162
|
-
price: 10,
|
|
1163
|
-
usageType: 'metered',
|
|
1164
|
-
type: 'extra_user'
|
|
1165
|
-
},
|
|
1166
|
-
additionalSeller: {
|
|
1167
|
-
id: 'price_1KJmzNLFzcsAA7x6gF62MX41',
|
|
1168
|
-
price: 2,
|
|
1169
|
-
usageType: 'metered',
|
|
1170
|
-
type: 'extra_user'
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
},
|
|
1174
|
-
standard: {
|
|
1175
|
-
id: 'prod_HsAwETfIUblsAT',
|
|
1176
|
-
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1177
|
-
tariffs: {
|
|
1178
|
-
base: {
|
|
1179
|
-
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1180
|
-
price: 69,
|
|
1181
|
-
usageType: 'licensed',
|
|
1182
|
-
type: 'base'
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
plus: {
|
|
1187
|
-
id: 'prod_HsB2YJPEZ9H98c',
|
|
1188
|
-
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1189
|
-
tariffs: {
|
|
1190
|
-
base: {
|
|
1191
|
-
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1192
|
-
price: 159,
|
|
1193
|
-
usageType: 'licensed',
|
|
1194
|
-
type: 'base'
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
// test_1: {
|
|
1199
|
-
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1200
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1201
|
-
// tariffs: {
|
|
1202
|
-
// base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
|
|
1203
|
-
// additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
|
|
1204
|
-
// additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1205
|
-
// additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1206
|
-
// additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
|
|
1207
|
-
// },
|
|
1208
|
-
// },
|
|
1209
|
-
// test_2: {
|
|
1210
|
-
// id: 'prod_L2xmEk7gqqRJtS',
|
|
1211
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1212
|
-
// tariffs: {
|
|
1213
|
-
// base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
|
|
1214
|
-
// additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
|
|
1215
|
-
// additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
|
|
1216
|
-
// additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1217
|
-
// additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1218
|
-
// },
|
|
1219
|
-
// },
|
|
1220
|
-
// test_3: {
|
|
1221
|
-
// id: 'prod_L2xnCHGi6QNgX8',
|
|
1222
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1223
|
-
// tariffs: {
|
|
1224
|
-
// base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
|
|
1225
|
-
// },
|
|
1226
|
-
// },
|
|
1227
|
-
// test_4: {
|
|
1228
|
-
// id: 'prod_L2yWF4ssugw8Ln',
|
|
1229
|
-
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1230
|
-
// tariffs: {
|
|
1231
|
-
// base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
|
|
1232
|
-
// additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
|
|
1233
|
-
// additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1234
|
-
// additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
|
|
1235
|
-
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1236
|
-
// },
|
|
1237
|
-
// },
|
|
1238
|
-
};
|
|
1239
|
-
/**
|
|
1240
|
-
*
|
|
1241
|
-
* @param envName
|
|
1242
|
-
*/
|
|
1243
|
-
var index$1 = (function (envName) {
|
|
1244
|
-
if (envName === 'production') return createProducts(production);
|
|
1245
|
-
return createProducts(testing);
|
|
1246
|
-
});
|
|
1247
|
-
|
|
1248
|
-
var ROLE;
|
|
1249
|
-
(function (ROLE) {
|
|
1250
|
-
ROLE["CLIENT"] = "client";
|
|
1251
|
-
ROLE["SELLER"] = "seller";
|
|
1252
|
-
ROLE["PRO"] = "pro";
|
|
1253
|
-
ROLE["AGENT"] = "agent";
|
|
1254
|
-
ROLE["ADMIN"] = "admin";
|
|
1255
|
-
ROLE["OWNER"] = "owner";
|
|
1256
|
-
ROLE["SUPERADMIN"] = "superadmin";
|
|
1257
|
-
})(ROLE || (ROLE = {}));
|
|
1258
|
-
var ProDocumentEmailSend;
|
|
1259
|
-
(function (ProDocumentEmailSend) {
|
|
1260
|
-
ProDocumentEmailSend["WARNING"] = "WARNING";
|
|
1261
|
-
ProDocumentEmailSend["SUSPENDED"] = "SUSPENDED";
|
|
1262
|
-
})(ProDocumentEmailSend || (ProDocumentEmailSend = {}));
|
|
1263
|
-
var MarketplaceStatus;
|
|
1264
|
-
(function (MarketplaceStatus) {
|
|
1265
|
-
MarketplaceStatus["OPEN"] = "OPEN";
|
|
1266
|
-
MarketplaceStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
1267
|
-
MarketplaceStatus["CLOSE"] = "CLOSE";
|
|
1268
|
-
})(MarketplaceStatus || (MarketplaceStatus = {}));
|
|
1269
|
-
var VisitReportStatus;
|
|
1270
|
-
(function (VisitReportStatus) {
|
|
1271
|
-
VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
1272
|
-
VisitReportStatus["VALID"] = "VALID";
|
|
1273
|
-
})(VisitReportStatus || (VisitReportStatus = {}));
|
|
1274
|
-
var DevisOriginEnum;
|
|
1275
|
-
(function (DevisOriginEnum) {
|
|
1276
|
-
DevisOriginEnum["MARKETPLACE"] = "MARKETPLACE";
|
|
1277
|
-
DevisOriginEnum["MARKETPLACE_EXTRA_WORK"] = "MARKETPLACE_EXTRA_WORK";
|
|
1278
|
-
DevisOriginEnum["DUPLICATE"] = "DUPLICATE";
|
|
1279
|
-
DevisOriginEnum["TEMPLATE"] = "TEMPLATE";
|
|
1280
|
-
})(DevisOriginEnum || (DevisOriginEnum = {}));
|
|
1281
|
-
var DevisCommissionsEntity;
|
|
1282
|
-
(function (DevisCommissionsEntity) {
|
|
1283
|
-
DevisCommissionsEntity["pro"] = "pro";
|
|
1284
|
-
DevisCommissionsEntity["provider"] = "provider";
|
|
1285
|
-
DevisCommissionsEntity["enterprise"] = "enterprise";
|
|
1286
|
-
})(DevisCommissionsEntity || (DevisCommissionsEntity = {}));
|
|
1287
|
-
var DevisHistoryType;
|
|
1288
|
-
(function (DevisHistoryType) {
|
|
1289
|
-
DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
1290
|
-
DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
|
|
1291
|
-
DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
|
|
1292
|
-
DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
|
|
1293
|
-
})(DevisHistoryType || (DevisHistoryType = {}));
|
|
1294
|
-
var DevisDocSectionEnum;
|
|
1295
|
-
(function (DevisDocSectionEnum) {
|
|
1296
|
-
DevisDocSectionEnum["PRESENTATION"] = "PRESENTATION";
|
|
1297
|
-
DevisDocSectionEnum["RESUME"] = "RESUME";
|
|
1298
|
-
DevisDocSectionEnum["MATERIAL_IMAGE"] = "MATERIAL_IMAGE";
|
|
1299
|
-
DevisDocSectionEnum["MATERIAL_FIXED"] = "MATERIAL_FIXED";
|
|
1300
|
-
DevisDocSectionEnum["MATERIAL_VARIABLE"] = "MATERIAL_VARIABLE";
|
|
1301
|
-
DevisDocSectionEnum["RENO_HELP"] = "RENO_HELP";
|
|
1302
|
-
DevisDocSectionEnum["COMMENTS"] = "COMMENTS";
|
|
1303
|
-
DevisDocSectionEnum["PAYMENTS_PLANNING"] = "PAYMENTS_PLANNING";
|
|
1304
|
-
DevisDocSectionEnum["BANK_DETAILS"] = "BANK_DETAILS";
|
|
1305
|
-
DevisDocSectionEnum["SIGNATURE_AREA"] = "SIGNATURE_AREA";
|
|
1306
|
-
DevisDocSectionEnum["CGV"] = "CGV";
|
|
1307
|
-
DevisDocSectionEnum["CERFA_CERTIFICATE"] = "CERFA_CERTIFICATE";
|
|
1308
|
-
})(DevisDocSectionEnum || (DevisDocSectionEnum = {}));
|
|
1309
|
-
var DevisDocColorEnum;
|
|
1310
|
-
(function (DevisDocColorEnum) {
|
|
1311
|
-
DevisDocColorEnum["PRIMARY"] = "PRIMARY";
|
|
1312
|
-
DevisDocColorEnum["SECONDARY"] = "SECONDARY";
|
|
1313
|
-
})(DevisDocColorEnum || (DevisDocColorEnum = {}));
|
|
1314
|
-
var DevisDocDurationEnum;
|
|
1315
|
-
(function (DevisDocDurationEnum) {
|
|
1316
|
-
DevisDocDurationEnum["DAYS"] = "DAYS";
|
|
1317
|
-
DevisDocDurationEnum["WEEKS"] = "WEEKS";
|
|
1318
|
-
DevisDocDurationEnum["MONTHS"] = "MONTHS";
|
|
1319
|
-
DevisDocDurationEnum["YEARS"] = "YEARS";
|
|
1320
|
-
})(DevisDocDurationEnum || (DevisDocDurationEnum = {}));
|
|
1321
|
-
var MaterialsProviderType;
|
|
1322
|
-
(function (MaterialsProviderType) {
|
|
1323
|
-
// created by the enterprises and use algolia index 'materials'
|
|
1324
|
-
MaterialsProviderType["INTERNAL"] = "internal";
|
|
1325
|
-
// any catalog that needs an external connection
|
|
1326
|
-
MaterialsProviderType["API"] = "api";
|
|
1327
|
-
// every catalog created on the super-admin and use algolia index 'system-materials'
|
|
1328
|
-
MaterialsProviderType["SYSTEM"] = "system";
|
|
1329
|
-
})(MaterialsProviderType || (MaterialsProviderType = {}));
|
|
1330
|
-
var ProjectType;
|
|
1331
|
-
(function (ProjectType) {
|
|
1332
|
-
ProjectType["ONE_PIECE"] = "ONE_PIECE";
|
|
1333
|
-
ProjectType["FULL"] = "FULL";
|
|
1334
|
-
ProjectType["COMPOUND"] = "COMPOUND";
|
|
1335
|
-
ProjectType["CHILD"] = "CHILD";
|
|
1336
|
-
})(ProjectType || (ProjectType = {}));
|
|
1337
|
-
var OperationStatusEnum;
|
|
1338
|
-
(function (OperationStatusEnum) {
|
|
1339
|
-
OperationStatusEnum["TODO"] = "TODO";
|
|
1340
|
-
OperationStatusEnum["INPROGRESS"] = "INPROGRESS";
|
|
1341
|
-
OperationStatusEnum["DONE"] = "DONE";
|
|
1342
|
-
})(OperationStatusEnum || (OperationStatusEnum = {}));
|
|
1343
|
-
var NotesType;
|
|
1344
|
-
(function (NotesType) {
|
|
1345
|
-
NotesType["NOTE"] = "NOTE";
|
|
1346
|
-
NotesType["PROBLEM"] = "PROBLEM";
|
|
1347
|
-
NotesType["IMPORTANT"] = "IMPORTANT";
|
|
1348
|
-
NotesType["DELIVERY"] = "DELIVERY";
|
|
1349
|
-
})(NotesType || (NotesType = {}));
|
|
1350
|
-
var NotificationType;
|
|
1351
|
-
(function (NotificationType) {
|
|
1352
|
-
NotificationType[NotificationType["SUCCESS"] = 0] = "SUCCESS";
|
|
1353
|
-
NotificationType[NotificationType["INFO"] = 1] = "INFO";
|
|
1354
|
-
NotificationType[NotificationType["WARNING"] = 2] = "WARNING";
|
|
1355
|
-
NotificationType[NotificationType["DANGER"] = 3] = "DANGER";
|
|
1356
|
-
NotificationType[NotificationType["TOAST"] = 4] = "TOAST";
|
|
1357
|
-
})(NotificationType || (NotificationType = {}));
|
|
1358
|
-
var DevisStatusEnum;
|
|
1359
|
-
(function (DevisStatusEnum) {
|
|
1360
|
-
DevisStatusEnum["CREATED"] = "CREATED";
|
|
1361
|
-
DevisStatusEnum["SENT"] = "SENT";
|
|
1362
|
-
DevisStatusEnum["APPROVED"] = "APPROVED";
|
|
1363
|
-
DevisStatusEnum["REFUSED"] = "REFUSED";
|
|
1364
|
-
DevisStatusEnum["ABANDONED"] = "ABANDONED";
|
|
1365
|
-
})(DevisStatusEnum || (DevisStatusEnum = {}));
|
|
1366
|
-
var DevisTypeEnum;
|
|
1367
|
-
(function (DevisTypeEnum) {
|
|
1368
|
-
DevisTypeEnum["DEVIS"] = "DEVIS";
|
|
1369
|
-
DevisTypeEnum["SAV"] = "SAV";
|
|
1370
|
-
DevisTypeEnum["TS"] = "TS";
|
|
1371
|
-
})(DevisTypeEnum || (DevisTypeEnum = {}));
|
|
1372
|
-
var DevisViewMode;
|
|
1373
|
-
(function (DevisViewMode) {
|
|
1374
|
-
DevisViewMode[DevisViewMode["HOME"] = 0] = "HOME";
|
|
1375
|
-
DevisViewMode[DevisViewMode["GENERAL"] = 1] = "GENERAL";
|
|
1376
|
-
DevisViewMode[DevisViewMode["PRO"] = 2] = "PRO";
|
|
1377
|
-
DevisViewMode[DevisViewMode["CLIENT"] = 3] = "CLIENT";
|
|
1378
|
-
})(DevisViewMode || (DevisViewMode = {}));
|
|
1379
|
-
var DevisPdfSectionEnum;
|
|
1380
|
-
(function (DevisPdfSectionEnum) {
|
|
1381
|
-
DevisPdfSectionEnum["FINANCIAL_HELP"] = "FINANCIAL_HELP";
|
|
1382
|
-
DevisPdfSectionEnum["PROJECT"] = "PROJECT";
|
|
1383
|
-
DevisPdfSectionEnum["CLIENT"] = "CLIENT";
|
|
1384
|
-
DevisPdfSectionEnum["PROJECT_MANAGER"] = "PROJECT_MANAGER";
|
|
1385
|
-
})(DevisPdfSectionEnum || (DevisPdfSectionEnum = {}));
|
|
1386
|
-
var DocumentsTypeEnum;
|
|
1387
|
-
(function (DocumentsTypeEnum) {
|
|
1388
|
-
DocumentsTypeEnum["DEVIS"] = "DEVIS";
|
|
1389
|
-
DocumentsTypeEnum["DOCUMENT"] = "DOCUMENT";
|
|
1390
|
-
DocumentsTypeEnum["CLIENT"] = "CLIENT";
|
|
1391
|
-
DocumentsTypeEnum["OTHER"] = "OTHER";
|
|
1392
|
-
})(DocumentsTypeEnum || (DocumentsTypeEnum = {}));
|
|
1393
|
-
var EventsTypeEnum;
|
|
1394
|
-
(function (EventsTypeEnum) {
|
|
1395
|
-
EventsTypeEnum["OTHER"] = "AUTRE";
|
|
1396
|
-
EventsTypeEnum["VISIT"] = "VISIT";
|
|
1397
|
-
EventsTypeEnum["DELIVERY"] = "DELIVERY";
|
|
1398
|
-
EventsTypeEnum["CONSTRUCTION"] = "CONSTRUCTION";
|
|
1399
|
-
EventsTypeEnum["SAV"] = "SAV";
|
|
1400
|
-
EventsTypeEnum["TECHNICAL_STATEMENT"] = "TECHNICAL_STATEMENT";
|
|
1401
|
-
EventsTypeEnum["TS_DESIGN"] = "TS_DESIGN";
|
|
1402
|
-
})(EventsTypeEnum || (EventsTypeEnum = {}));
|
|
1403
|
-
var PaymentMethodTypeEnum;
|
|
1404
|
-
(function (PaymentMethodTypeEnum) {
|
|
1405
|
-
PaymentMethodTypeEnum["CREDIT_CARD"] = "CREDIT_CARD";
|
|
1406
|
-
PaymentMethodTypeEnum["BANK_TRANSFERT"] = "BANK_TRANSFERT";
|
|
1407
|
-
})(PaymentMethodTypeEnum || (PaymentMethodTypeEnum = {}));
|
|
1408
|
-
var BillDocTypeEnum;
|
|
1409
|
-
(function (BillDocTypeEnum) {
|
|
1410
|
-
BillDocTypeEnum["BILL"] = "BILL";
|
|
1411
|
-
BillDocTypeEnum["PURCHASE_ORDER"] = "PURCHASE_ORDER";
|
|
1412
|
-
})(BillDocTypeEnum || (BillDocTypeEnum = {}));
|
|
1413
|
-
var BillIssuedStatus;
|
|
1414
|
-
(function (BillIssuedStatus) {
|
|
1415
|
-
BillIssuedStatus["PROVISIONAL"] = "PROVISIONAL";
|
|
1416
|
-
BillIssuedStatus["WAITING"] = "WAITING";
|
|
1417
|
-
BillIssuedStatus["CREATED"] = "CREATED";
|
|
1418
|
-
BillIssuedStatus["SENT"] = "SENT";
|
|
1419
|
-
BillIssuedStatus["PAID"] = "PAID";
|
|
1420
|
-
BillIssuedStatus["BLOCKED"] = "BLOCKED";
|
|
1421
|
-
BillIssuedStatus["CANCELED"] = "CANCELED";
|
|
1422
|
-
})(BillIssuedStatus || (BillIssuedStatus = {}));
|
|
1423
|
-
var BillReceivedStatus;
|
|
1424
|
-
(function (BillReceivedStatus) {
|
|
1425
|
-
BillReceivedStatus["PROVISIONAL"] = "PROVISIONAL";
|
|
1426
|
-
BillReceivedStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
|
|
1427
|
-
BillReceivedStatus["WAITING_ACCOUNT_VALIDATION"] = "WAITING_ACCOUNT_VALIDATION";
|
|
1428
|
-
BillReceivedStatus["WAITING_FOR_ELEMENT"] = "WAITING_FOR_ELEMENT";
|
|
1429
|
-
BillReceivedStatus["WAITING_FOR_PAYMENT"] = "WAITING_FOR_PAYMENT";
|
|
1430
|
-
BillReceivedStatus["TO_PAY"] = "TO_PAY";
|
|
1431
|
-
BillReceivedStatus["TRANSFER_TO_VALIDATE"] = "TRANSFER_TO_VALIDATE";
|
|
1432
|
-
BillReceivedStatus["WITHOUT_INVOICE"] = "WITHOUT_INVOICE";
|
|
1433
|
-
BillReceivedStatus["RETENTION_MONEY"] = "RETENTION_MONEY";
|
|
1434
|
-
BillReceivedStatus["PAID"] = "PAID";
|
|
1435
|
-
BillReceivedStatus["REFUSED"] = "REFUSED";
|
|
1436
|
-
BillReceivedStatus["BLOCKED"] = "BLOCKED";
|
|
1437
|
-
})(BillReceivedStatus || (BillReceivedStatus = {}));
|
|
1438
|
-
var ReceptionVoucherStatus;
|
|
1439
|
-
(function (ReceptionVoucherStatus) {
|
|
1440
|
-
ReceptionVoucherStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
|
|
1441
|
-
ReceptionVoucherStatus["WAITING_ACCOUNT_VALIDATION"] = "WAITING_ACCOUNT_VALIDATION";
|
|
1442
|
-
ReceptionVoucherStatus["ACCEPTED"] = "ACCEPTED";
|
|
1443
|
-
ReceptionVoucherStatus["REFUSED"] = "REFUSED";
|
|
1444
|
-
})(ReceptionVoucherStatus || (ReceptionVoucherStatus = {}));
|
|
1445
|
-
var MarketplaceOrderStatus;
|
|
1446
|
-
(function (MarketplaceOrderStatus) {
|
|
1447
|
-
MarketplaceOrderStatus["ORDER_VALIDATE"] = "ORDER_VALIDATE";
|
|
1448
|
-
MarketplaceOrderStatus["ORDER_CANCELLED"] = "ORDER_CANCELLED";
|
|
1449
|
-
})(MarketplaceOrderStatus || (MarketplaceOrderStatus = {}));
|
|
1450
|
-
var BillType;
|
|
1451
|
-
(function (BillType) {
|
|
1452
|
-
BillType["RECEIVED"] = "RECEIVED";
|
|
1453
|
-
BillType["ISSUED"] = "ISSUED";
|
|
1454
|
-
})(BillType || (BillType = {}));
|
|
1455
|
-
var BillReceivedEntity;
|
|
1456
|
-
(function (BillReceivedEntity) {
|
|
1457
|
-
BillReceivedEntity["PRO"] = "PRO";
|
|
1458
|
-
BillReceivedEntity["MATERIAL_PROVIDER"] = "MATERIAL_PROVIDER";
|
|
1459
|
-
BillReceivedEntity["SERVICE_PROVIDER"] = "SERVICE_PROVIDER";
|
|
1460
|
-
BillReceivedEntity["PROVIDER"] = "PROVIDER";
|
|
1461
|
-
BillReceivedEntity["OTHER"] = "OTHER";
|
|
1462
|
-
})(BillReceivedEntity || (BillReceivedEntity = {}));
|
|
1463
|
-
var BillReceivedType;
|
|
1464
|
-
(function (BillReceivedType) {
|
|
1465
|
-
BillReceivedType["FACTURE"] = "FACTURE";
|
|
1466
|
-
BillReceivedType["CREDIT_NOTE"] = "CREDIT_NOTE";
|
|
1467
|
-
})(BillReceivedType || (BillReceivedType = {}));
|
|
1468
|
-
var BillReceivedMode;
|
|
1469
|
-
(function (BillReceivedMode) {
|
|
1470
|
-
BillReceivedMode["DOWN_PAYMENT"] = "DOWN_PAYMENT";
|
|
1471
|
-
BillReceivedMode["BALANCE"] = "BALANCE";
|
|
1472
|
-
BillReceivedMode["SITUATION"] = "SITUATION";
|
|
1473
|
-
})(BillReceivedMode || (BillReceivedMode = {}));
|
|
1474
|
-
var BillIssuedEntity;
|
|
1475
|
-
(function (BillIssuedEntity) {
|
|
1476
|
-
BillIssuedEntity["CLIENT"] = "CLIENT";
|
|
1477
|
-
BillIssuedEntity["PRO"] = "PRO";
|
|
1478
|
-
BillIssuedEntity["PROVIDER"] = "PROVIDER";
|
|
1479
|
-
BillIssuedEntity["MATERIAL_PROVIDER"] = "MATERIAL_PROVIDER";
|
|
1480
|
-
BillIssuedEntity["SERVICE_PROVIDER"] = "SERVICE_PROVIDER";
|
|
1481
|
-
BillIssuedEntity["OTHER"] = "OTHER";
|
|
1482
|
-
})(BillIssuedEntity || (BillIssuedEntity = {}));
|
|
1483
|
-
var BillIssuedType;
|
|
1484
|
-
(function (BillIssuedType) {
|
|
1485
|
-
BillIssuedType["CUSTOM"] = "CUSTOM";
|
|
1486
|
-
BillIssuedType["DOWN_PAYMENT"] = "DOWN_PAYMENT";
|
|
1487
|
-
BillIssuedType["BALANCE"] = "BALANCE";
|
|
1488
|
-
BillIssuedType["CREDIT_NOTE"] = "CREDIT_NOTE";
|
|
1489
|
-
})(BillIssuedType || (BillIssuedType = {}));
|
|
1490
|
-
var BillElementType;
|
|
1491
|
-
(function (BillElementType) {
|
|
1492
|
-
BillElementType["ADVANCE"] = "ADVANCE";
|
|
1493
|
-
BillElementType["HOURS"] = "HOURS";
|
|
1494
|
-
BillElementType["DAYS"] = "DAYS";
|
|
1495
|
-
BillElementType["PRODUCT"] = "PRODUCT";
|
|
1496
|
-
BillElementType["SERVICE"] = "SERVICE";
|
|
1497
|
-
BillElementType["PROVIDER_COMMISSION"] = "PROVIDER_COMMISSION";
|
|
1498
|
-
})(BillElementType || (BillElementType = {}));
|
|
1499
|
-
var BillDiscountType;
|
|
1500
|
-
(function (BillDiscountType) {
|
|
1501
|
-
BillDiscountType["PERCENT"] = "PERCENT";
|
|
1502
|
-
BillDiscountType["MONEY"] = "MONEY";
|
|
1503
|
-
})(BillDiscountType || (BillDiscountType = {}));
|
|
1504
|
-
var PaymentType;
|
|
1505
|
-
(function (PaymentType) {
|
|
1506
|
-
PaymentType["CREDIT"] = "CREDIT";
|
|
1507
|
-
PaymentType["DEBIT"] = "DEBIT";
|
|
1508
|
-
})(PaymentType || (PaymentType = {}));
|
|
1509
|
-
var ProjectTypeEnum;
|
|
1510
|
-
(function (ProjectTypeEnum) {
|
|
1511
|
-
ProjectTypeEnum["ONE_PIECE"] = "ONE_PIECE";
|
|
1512
|
-
ProjectTypeEnum["FULL"] = "FULL";
|
|
1513
|
-
ProjectTypeEnum["COMPOUND"] = "COMPOUND";
|
|
1514
|
-
ProjectTypeEnum["CHILD"] = "CHILD";
|
|
1515
|
-
})(ProjectTypeEnum || (ProjectTypeEnum = {}));
|
|
1516
|
-
var ProjectCategoriesEnum;
|
|
1517
|
-
(function (ProjectCategoriesEnum) {
|
|
1518
|
-
ProjectCategoriesEnum["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1519
|
-
ProjectCategoriesEnum["BATHROOM"] = "BATHROOM";
|
|
1520
|
-
ProjectCategoriesEnum["KITCHEN"] = "KITCHEN";
|
|
1521
|
-
ProjectCategoriesEnum["LIVINGROOM"] = "LIVINGROOM";
|
|
1522
|
-
ProjectCategoriesEnum["BEDROOM"] = "BEDROOM";
|
|
1523
|
-
ProjectCategoriesEnum["TOILET"] = "TOILET";
|
|
1524
|
-
ProjectCategoriesEnum["OFFICE"] = "OFFICE";
|
|
1525
|
-
ProjectCategoriesEnum["APARTMENT"] = "APARTMENT";
|
|
1526
|
-
ProjectCategoriesEnum["HOUSE"] = "HOUSE";
|
|
1527
|
-
ProjectCategoriesEnum["ELECTRICITY"] = "ELECTRICITY";
|
|
1528
|
-
ProjectCategoriesEnum["PLUMBIG"] = "PLUMBIG";
|
|
1529
|
-
ProjectCategoriesEnum["FLOORING"] = "FLOORING";
|
|
1530
|
-
ProjectCategoriesEnum["WALL_COVERING"] = "WALL_COVERING";
|
|
1531
|
-
ProjectCategoriesEnum["STAIRS"] = "STAIRS";
|
|
1532
|
-
ProjectCategoriesEnum["OUTSIDE"] = "OUTSIDE";
|
|
1533
|
-
ProjectCategoriesEnum["COMMERCE"] = "COMMERCE";
|
|
1534
|
-
})(ProjectCategoriesEnum || (ProjectCategoriesEnum = {}));
|
|
1535
|
-
var ProSpecialitiesEnum;
|
|
1536
|
-
(function (ProSpecialitiesEnum) {
|
|
1537
|
-
ProSpecialitiesEnum["KITCHEN"] = "kitchen";
|
|
1538
|
-
ProSpecialitiesEnum["BATHROOM"] = "bathroom";
|
|
1539
|
-
ProSpecialitiesEnum["GENERAL"] = "general_renovation";
|
|
1540
|
-
ProSpecialitiesEnum["GARDEN"] = "garden";
|
|
1541
|
-
ProSpecialitiesEnum["ATTICS"] = "attics";
|
|
1542
|
-
ProSpecialitiesEnum["POOL"] = "swimming_pool";
|
|
1543
|
-
})(ProSpecialitiesEnum || (ProSpecialitiesEnum = {}));
|
|
1544
|
-
var ProSkillsEnum;
|
|
1545
|
-
(function (ProSkillsEnum) {
|
|
1546
|
-
ProSkillsEnum["ELECTRICITY"] = "electricity";
|
|
1547
|
-
ProSkillsEnum["PLUMBING"] = "plumbing";
|
|
1548
|
-
ProSkillsEnum["CARPENTRY"] = "carpentry";
|
|
1549
|
-
ProSkillsEnum["MASONRY"] = "masonry";
|
|
1550
|
-
ProSkillsEnum["PAINTING"] = "painting";
|
|
1551
|
-
ProSkillsEnum["GARDEN"] = "garden";
|
|
1552
|
-
ProSkillsEnum["LOCKSMITH"] = "locksmith";
|
|
1553
|
-
ProSkillsEnum["FRAME"] = "frame";
|
|
1554
|
-
ProSkillsEnum["INSULATION"] = "insulation";
|
|
1555
|
-
})(ProSkillsEnum || (ProSkillsEnum = {}));
|
|
1556
|
-
var MarketplaceProSkillsEnum;
|
|
1557
|
-
(function (MarketplaceProSkillsEnum) {
|
|
1558
|
-
MarketplaceProSkillsEnum["STRUCTURAL_WORKS"] = "structural_works";
|
|
1559
|
-
MarketplaceProSkillsEnum["WATERPROOFING"] = "waterproofing";
|
|
1560
|
-
MarketplaceProSkillsEnum["METAL_FRAME"] = "metal_frame";
|
|
1561
|
-
MarketplaceProSkillsEnum["ELECTRICAL_INSTALLATION"] = "electrical_installation";
|
|
1562
|
-
MarketplaceProSkillsEnum["VIDEO_CONTROL_SECURITY"] = "video_control_security";
|
|
1563
|
-
MarketplaceProSkillsEnum["INTERIOR_DESIGN"] = "interior_design";
|
|
1564
|
-
MarketplaceProSkillsEnum["INTERIOR_CARPENTRY"] = "interior_carpentry";
|
|
1565
|
-
MarketplaceProSkillsEnum["PLUMBING_WC"] = "plumbing_wc";
|
|
1566
|
-
MarketplaceProSkillsEnum["ALL_TRADES"] = "all_trades";
|
|
1567
|
-
MarketplaceProSkillsEnum["CLADDING"] = "cladding";
|
|
1568
|
-
MarketplaceProSkillsEnum["WATER_SUPPLY"] = "water_supply";
|
|
1569
|
-
MarketplaceProSkillsEnum["DECONTAMINATION"] = "decontamination";
|
|
1570
|
-
MarketplaceProSkillsEnum["DISPOSAL_SMOKES"] = "disposal_smokes";
|
|
1571
|
-
MarketplaceProSkillsEnum["ATMOSPHERE_RELEASES"] = "atmosphere_releases";
|
|
1572
|
-
})(MarketplaceProSkillsEnum || (MarketplaceProSkillsEnum = {}));
|
|
1573
|
-
var CommercialStatusEnum;
|
|
1574
|
-
(function (CommercialStatusEnum) {
|
|
1575
|
-
CommercialStatusEnum["CONTRACTOR"] = "CONTRACTOR";
|
|
1576
|
-
CommercialStatusEnum["EIRL"] = "EIRL";
|
|
1577
|
-
CommercialStatusEnum["SARL"] = "SARL";
|
|
1578
|
-
CommercialStatusEnum["EURL"] = "EURL";
|
|
1579
|
-
CommercialStatusEnum["SASU"] = "SASU";
|
|
1580
|
-
CommercialStatusEnum["SAS"] = "SAS";
|
|
1581
|
-
})(CommercialStatusEnum || (CommercialStatusEnum = {}));
|
|
1582
|
-
var Origin;
|
|
1583
|
-
(function (Origin) {
|
|
1584
|
-
Origin["PROVIDER"] = "provider";
|
|
1585
|
-
Origin["INTERNET"] = "internet";
|
|
1586
|
-
Origin["YELLOW_PAGES"] = "yellow-pages";
|
|
1587
|
-
Origin["RUMOR"] = "rumor";
|
|
1588
|
-
Origin["PUBLICITY"] = "publicity";
|
|
1589
|
-
})(Origin || (Origin = {}));
|
|
1590
|
-
var OrderMaterialStatus;
|
|
1591
|
-
(function (OrderMaterialStatus) {
|
|
1592
|
-
OrderMaterialStatus["TODO"] = "TODO";
|
|
1593
|
-
OrderMaterialStatus["DOING"] = "DOING";
|
|
1594
|
-
OrderMaterialStatus["ORDERED"] = "ORDERED";
|
|
1595
|
-
})(OrderMaterialStatus || (OrderMaterialStatus = {}));
|
|
1596
|
-
var PhonesEnum;
|
|
1597
|
-
(function (PhonesEnum) {
|
|
1598
|
-
PhonesEnum["MOBILE"] = "mobile";
|
|
1599
|
-
PhonesEnum["WORK"] = "work";
|
|
1600
|
-
PhonesEnum["LANDLINE"] = "landline";
|
|
1601
|
-
PhonesEnum["OTHER"] = "other";
|
|
1602
|
-
})(PhonesEnum || (PhonesEnum = {}));
|
|
1603
|
-
var SendgridTemplates;
|
|
1604
|
-
(function (SendgridTemplates) {
|
|
1605
|
-
SendgridTemplates["NOTES"] = "notes";
|
|
1606
|
-
SendgridTemplates["EVENTS"] = "events";
|
|
1607
|
-
SendgridTemplates["DOCUMENTS"] = "documents";
|
|
1608
|
-
SendgridTemplates["DEVIS"] = "devis";
|
|
1609
|
-
})(SendgridTemplates || (SendgridTemplates = {}));
|
|
1610
|
-
var TermsOfPayment;
|
|
1611
|
-
(function (TermsOfPayment) {
|
|
1612
|
-
TermsOfPayment["UPON_RECEIPT"] = "upon-receipt";
|
|
1613
|
-
TermsOfPayment["MONTH_END"] = "month-end";
|
|
1614
|
-
TermsOfPayment["DAYS_10"] = "10-days";
|
|
1615
|
-
TermsOfPayment["DAYS_20"] = "20-days";
|
|
1616
|
-
TermsOfPayment["DAYS_30"] = "30-days";
|
|
1617
|
-
TermsOfPayment["DAYS_30_END_MONTH"] = "30-days-end-month";
|
|
1618
|
-
TermsOfPayment["DAYS_45"] = "45-days";
|
|
1619
|
-
TermsOfPayment["DAYS_60"] = "60-days";
|
|
1620
|
-
TermsOfPayment["DAYS_60_END_MONTH"] = "60-days-end-month";
|
|
1621
|
-
TermsOfPayment["DAYS_90"] = "90-days";
|
|
1622
|
-
TermsOfPayment["DAYS_90_END_MONTH"] = "90-days-end-month";
|
|
1623
|
-
TermsOfPayment["DAYS_120"] = "120-days";
|
|
1624
|
-
})(TermsOfPayment || (TermsOfPayment = {}));
|
|
1625
|
-
var PaymentChoice;
|
|
1626
|
-
(function (PaymentChoice) {
|
|
1627
|
-
PaymentChoice["UNSPECIFIED"] = "unspecified";
|
|
1628
|
-
PaymentChoice["CASH"] = "cash";
|
|
1629
|
-
PaymentChoice["CHECK"] = "check";
|
|
1630
|
-
PaymentChoice["BANK_TRANSFER"] = "bank-transfer";
|
|
1631
|
-
PaymentChoice["BANK_CARD"] = "bank-card";
|
|
1632
|
-
PaymentChoice["PAYPAL"] = "paypal";
|
|
1633
|
-
PaymentChoice["SAMPLE"] = "sample";
|
|
1634
|
-
PaymentChoice["BILL_EXCHANGE"] = "bill-exchange";
|
|
1635
|
-
PaymentChoice["STATEMENT_EXCHANGE"] = "statement-exchange";
|
|
1636
|
-
PaymentChoice["BILL_EXCHANGE_WITHOUT_ACCEPTANCE"] = "bill-exchange-without-acceptance";
|
|
1637
|
-
PaymentChoice["PROMISSORY_NOTE"] = "promissory-note";
|
|
1638
|
-
})(PaymentChoice || (PaymentChoice = {}));
|
|
1639
|
-
var LateInterest;
|
|
1640
|
-
(function (LateInterest) {
|
|
1641
|
-
LateInterest["NO_LATE_INTEREST"] = "No-late-interest";
|
|
1642
|
-
LateInterest["PER_MONTH_1"] = "1%-per-month";
|
|
1643
|
-
LateInterest["PER_MONTH_15"] = "1.5%-per-month";
|
|
1644
|
-
LateInterest["PER_MONTH_2"] = "2%-per-month";
|
|
1645
|
-
LateInterest["CURRENT_LEGAL_INTEREST_RATE"] = "current-legal-interest-rate";
|
|
1646
|
-
LateInterest["SPECIFY"] = "specify";
|
|
1647
|
-
})(LateInterest || (LateInterest = {}));
|
|
1648
|
-
var ProfileStatus;
|
|
1649
|
-
(function (ProfileStatus) {
|
|
1650
|
-
ProfileStatus["ACTIVE"] = "active";
|
|
1651
|
-
ProfileStatus["INACTIVE"] = "inactive";
|
|
1652
|
-
ProfileStatus["BLOCKED"] = "blocked";
|
|
1653
|
-
ProfileStatus["SUSPENDED"] = "suspended";
|
|
1654
|
-
})(ProfileStatus || (ProfileStatus = {}));
|
|
1655
|
-
var EstimationOriginEnum;
|
|
1656
|
-
(function (EstimationOriginEnum) {
|
|
1657
|
-
EstimationOriginEnum["WEBSITE"] = "WEBSITE";
|
|
1658
|
-
EstimationOriginEnum["ARTICHO"] = "ARTICHO";
|
|
1659
|
-
})(EstimationOriginEnum || (EstimationOriginEnum = {}));
|
|
1660
|
-
var EstimationTypeEnum;
|
|
1661
|
-
(function (EstimationTypeEnum) {
|
|
1662
|
-
EstimationTypeEnum["KITCHEN"] = "KITCHEN";
|
|
1663
|
-
EstimationTypeEnum["BATHROOM"] = "BATHROOM";
|
|
1664
|
-
EstimationTypeEnum["ONE_PIECE"] = "ONE_PIECE";
|
|
1665
|
-
EstimationTypeEnum["HOUSE"] = "HOUSE";
|
|
1666
|
-
EstimationTypeEnum["APARTMENT"] = "APARTMENT";
|
|
1667
|
-
EstimationTypeEnum["COMMERCIAL_LOCAL"] = "COMMERCIAL_LOCAL";
|
|
1668
|
-
EstimationTypeEnum["WITHOUT_ESTIMATION"] = "WITHOUT_ESTIMATION";
|
|
1669
|
-
})(EstimationTypeEnum || (EstimationTypeEnum = {}));
|
|
1670
|
-
var EmailTemplate;
|
|
1671
|
-
(function (EmailTemplate) {
|
|
1672
|
-
EmailTemplate["USER_INVITATION"] = "user-invitation";
|
|
1673
|
-
EmailTemplate["DOCUMENTS"] = "documents";
|
|
1674
|
-
EmailTemplate["NOTES"] = "notes";
|
|
1675
|
-
EmailTemplate["EVENTS"] = "events";
|
|
1676
|
-
EmailTemplate["DEVIS"] = "devis";
|
|
1677
|
-
EmailTemplate["CLIENT_ESTIMATION_WEBSITE"] = "client-estimation-website";
|
|
1678
|
-
EmailTemplate["CLIENT_ESTIMATION_ARTICHO"] = "client-estimation-articho";
|
|
1679
|
-
EmailTemplate["ENTERPRISE_ESTIMATION"] = "enterprise-estimation";
|
|
1680
|
-
EmailTemplate["RESET_PASSWORD"] = "reset-password";
|
|
1681
|
-
EmailTemplate["WELCOME_TO_ENTERPRISE"] = "welcome-to-enterprise";
|
|
1682
|
-
EmailTemplate["WELCOME_TO_NEW_ENTERPRISE"] = "welcome-to-new-enterprise";
|
|
1683
|
-
EmailTemplate["NEW_ENTERPRISE"] = "new-enterprise";
|
|
1684
|
-
EmailTemplate["USER_CONTACT"] = "user-contact";
|
|
1685
|
-
EmailTemplate["PLAN"] = "plan";
|
|
1686
|
-
EmailTemplate["BILL"] = "bill";
|
|
1687
|
-
EmailTemplate["MEDIAS"] = "medias";
|
|
1688
|
-
EmailTemplate["EXPORT_LOGS"] = "export-logs";
|
|
1689
|
-
EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
|
|
1690
|
-
EmailTemplate["MARKETPLACE_WORK_ORDER_APPROVED"] = "marketplace-work-order-approved";
|
|
1691
|
-
EmailTemplate["MARKETPLACE_CLOSE_PROJECT"] = "marketplace-close-project";
|
|
1692
|
-
EmailTemplate["MARKETPLACE_WRONG_BILL"] = "marketplace-wrong-bill";
|
|
1693
|
-
EmailTemplate["MARKETPLACE_WRONG_BILL_AGENTS"] = "marketplace-wrong-bill-agents";
|
|
1694
|
-
EmailTemplate["MARKETPLACE_PROJECT_PRO_APPLIED"] = "marketplace-project-pro-applied";
|
|
1695
|
-
EmailTemplate["MARKETPLACE_PROJECT_PRO_SELECTED"] = "marketplace-project-pro-selected";
|
|
1696
|
-
EmailTemplate["MARKETPLACE_PROJECT_PRO_ASSIGNED"] = "marketplace-project-pro-assigned";
|
|
1697
|
-
EmailTemplate["MARKETPLACE_WORK_ORDER_READY_TO_VALIDATE"] = "marketplace-workorder-ready-to-validate";
|
|
1698
|
-
EmailTemplate["MARKETPLACE_WORK_ORDER_STATUS_CHANGED"] = "marketplace-workorder-status-changed";
|
|
1699
|
-
EmailTemplate["MARKETPLACE_NEW_PROJECT"] = "marketplace-new-project";
|
|
1700
|
-
EmailTemplate["MARKETPLACE_DEVIS_CANDIDATE_SENT"] = "marketplace-devis-candidate-sent";
|
|
1701
|
-
EmailTemplate["MARKETPLACE_DEVIS_CANDIDATE_REFUSED"] = "marketplace-devis-candidate-refused";
|
|
1702
|
-
EmailTemplate["MARKETPLACE_DEVIS_CANDIDATE_APPROVED"] = "marketplace-devis-candidate-approved";
|
|
1703
|
-
EmailTemplate["MARKETPLACE_DEVIS_DAYS_EXTENDED"] = "marketplace-project-days-extended";
|
|
1704
|
-
EmailTemplate["MARKETPLACE_SEBASTIEN_NOTIFICATION"] = "marketplace-sebastien-notification";
|
|
1705
|
-
EmailTemplate["MARKETPLACE_SEND_WORK_ORDER"] = "marketplace-send-work-order";
|
|
1706
|
-
EmailTemplate["MARKETPLACE_REQUEST_CANDIDATE_ATTRIBUTION"] = "marketplace-request-candidate-attribution";
|
|
1707
|
-
EmailTemplate["USER_DOC_TO_EXPIRE"] = "user-doc-to-expire";
|
|
1708
|
-
EmailTemplate["USER_DOC_EXPIRED"] = "user-doc-expired";
|
|
1709
|
-
EmailTemplate["SEND_BILL_TO_PENNYLANE"] = "send-bill-to-pennylane";
|
|
1710
|
-
})(EmailTemplate || (EmailTemplate = {}));
|
|
1711
|
-
var DevisPdfType;
|
|
1712
|
-
(function (DevisPdfType) {
|
|
1713
|
-
DevisPdfType["PROVIDER"] = "provider";
|
|
1714
|
-
DevisPdfType["PROFESSIONAL"] = "professional";
|
|
1715
|
-
DevisPdfType["ENTERPRISE"] = "enterprise";
|
|
1716
|
-
})(DevisPdfType || (DevisPdfType = {}));
|
|
1717
|
-
var DevisPdfMode;
|
|
1718
|
-
(function (DevisPdfMode) {
|
|
1719
|
-
DevisPdfMode["REGULAR"] = "regular";
|
|
1720
|
-
DevisPdfMode["SIMPLE"] = "simple";
|
|
1721
|
-
})(DevisPdfMode || (DevisPdfMode = {}));
|
|
1722
|
-
var DevisContractingEntity;
|
|
1723
|
-
(function (DevisContractingEntity) {
|
|
1724
|
-
DevisContractingEntity["PROVIDER"] = "provider";
|
|
1725
|
-
DevisContractingEntity["ENTERPRISE"] = "enterprise";
|
|
1726
|
-
})(DevisContractingEntity || (DevisContractingEntity = {}));
|
|
1727
|
-
var EnterpriseStatusEnum;
|
|
1728
|
-
(function (EnterpriseStatusEnum) {
|
|
1729
|
-
EnterpriseStatusEnum["INCOMPLETE"] = "incomplete";
|
|
1730
|
-
EnterpriseStatusEnum["INCOMPLETE_EXPIRED"] = "incomplete_expired";
|
|
1731
|
-
EnterpriseStatusEnum["TRIALING"] = "trialing";
|
|
1732
|
-
EnterpriseStatusEnum["ACTIVE"] = "active";
|
|
1733
|
-
EnterpriseStatusEnum["PAST_DUE"] = "past_due";
|
|
1734
|
-
EnterpriseStatusEnum["CANCELED"] = "canceled";
|
|
1735
|
-
EnterpriseStatusEnum["UNPAID"] = "unpaid";
|
|
1736
|
-
})(EnterpriseStatusEnum || (EnterpriseStatusEnum = {}));
|
|
1737
|
-
var EnterpriseProductEnum;
|
|
1738
|
-
(function (EnterpriseProductEnum) {
|
|
1739
|
-
EnterpriseProductEnum["STANDARD"] = "standard";
|
|
1740
|
-
EnterpriseProductEnum["PLUS"] = "plus";
|
|
1741
|
-
EnterpriseProductEnum["PREMIUM"] = "premium";
|
|
1742
|
-
})(EnterpriseProductEnum || (EnterpriseProductEnum = {}));
|
|
1743
|
-
var EstimationStatusEnum;
|
|
1744
|
-
(function (EstimationStatusEnum) {
|
|
1745
|
-
EstimationStatusEnum["WAITING"] = "WAITING";
|
|
1746
|
-
EstimationStatusEnum["APPROVED"] = "APPROVED";
|
|
1747
|
-
EstimationStatusEnum["REFUSED"] = "REFUSED";
|
|
1748
|
-
})(EstimationStatusEnum || (EstimationStatusEnum = {}));
|
|
1749
|
-
var HistoryActionEnum;
|
|
1750
|
-
(function (HistoryActionEnum) {
|
|
1751
|
-
HistoryActionEnum["EDIT"] = "EDIT";
|
|
1752
|
-
HistoryActionEnum["SEND_EMAIL"] = "SEND_EMAIL";
|
|
1753
|
-
HistoryActionEnum["EDIT_STATUS"] = "EDIT_STATUS";
|
|
1754
|
-
HistoryActionEnum["ASSIGN_AGENT"] = "ASSIGN_AGENT";
|
|
1755
|
-
HistoryActionEnum["UNASSIGN_AGENT"] = "UNASSIGN_AGENT";
|
|
1756
|
-
HistoryActionEnum["ASSIGN_PRO"] = "ASSIGN_PRO";
|
|
1757
|
-
HistoryActionEnum["UNASSIGN_PRO"] = "UNASSIGN_PRO";
|
|
1758
|
-
HistoryActionEnum["ASSIGN_SELLER"] = "ASSIGN_SELLER";
|
|
1759
|
-
HistoryActionEnum["UNASSIGN_SELLER"] = "UNASSIGN_SELLER";
|
|
1760
|
-
HistoryActionEnum["APPROVED_R_V"] = "APPROVED_R_V";
|
|
1761
|
-
HistoryActionEnum["DEVIS_APPROVED"] = "DEVIS_APPROVED";
|
|
1762
|
-
HistoryActionEnum["DEVIS_SENT"] = "DEVIS_SENT";
|
|
1763
|
-
HistoryActionEnum["DEVIS_SIGNED"] = "DEVIS_SIGNED";
|
|
1764
|
-
HistoryActionEnum["CREATE_DOCUMENT"] = "CREATE_DOCUMENT";
|
|
1765
|
-
HistoryActionEnum["CREATE_MEDIA"] = "CREATE_MEDIA";
|
|
1766
|
-
HistoryActionEnum["CREATE_EVENT"] = "CREATE_EVENT";
|
|
1767
|
-
HistoryActionEnum["CREATE_PLAN"] = "CREATE_PLAN";
|
|
1768
|
-
HistoryActionEnum["VALIDATE_PLAN"] = "VALIDATE_PLAN";
|
|
1769
|
-
HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
|
|
1770
|
-
HistoryActionEnum["EDIT_USER_STATUS"] = "EDIT_USER_STATUS";
|
|
1771
|
-
HistoryActionEnum["NEW_CANDIDATE"] = "NEW_CANDIDATE";
|
|
1772
|
-
HistoryActionEnum["ASSIGN_CANDIDATE"] = "ASSIGN_CANDIDATE";
|
|
1773
|
-
HistoryActionEnum["CANDIDATURE_STATUS"] = "CANDIDATURE_STATUS";
|
|
1774
|
-
HistoryActionEnum["CREATE_SERVICE_ORDER"] = "CREATE_SERVICE_ORDER";
|
|
1775
|
-
HistoryActionEnum["CREATE_RECEPTION_VOUCHER"] = "CREATE_RECEPTION_VOUCHER";
|
|
1776
|
-
HistoryActionEnum["CREATE_BILL"] = "CREATE_BILL";
|
|
1777
|
-
HistoryActionEnum["BILL_STATUS_CHANGE"] = "BILL_STATUS_CHANGE";
|
|
1778
|
-
HistoryActionEnum["DEVIS_CANDIDATE_SENT"] = "DEVIS_CANDIDATE_SENT";
|
|
1779
|
-
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
1780
|
-
var HistoryEntityType;
|
|
1781
|
-
(function (HistoryEntityType) {
|
|
1782
|
-
HistoryEntityType["PROJECT"] = "PROJECT";
|
|
1783
|
-
HistoryEntityType["NOTE"] = "NOTE";
|
|
1784
|
-
HistoryEntityType["RECEPTION_VOUCHER"] = "RECEPTION_VOUCHER";
|
|
1785
|
-
HistoryEntityType["DOCUMENT"] = "DOCUMENT";
|
|
1786
|
-
HistoryEntityType["PLAN"] = "PLAN";
|
|
1787
|
-
HistoryEntityType["EVENT"] = "EVENT";
|
|
1788
|
-
HistoryEntityType["MEDIA"] = "MEDIA";
|
|
1789
|
-
HistoryEntityType["DEVIS"] = "DEVIS";
|
|
1790
|
-
HistoryEntityType["PROFILE"] = "PROFILE";
|
|
1791
|
-
HistoryEntityType["CANDIDATURE"] = "CANDIDATURE";
|
|
1792
|
-
HistoryEntityType["DEVIS_CANDIDATE"] = "DEVIS_CANDIDATE";
|
|
1793
|
-
HistoryEntityType["BILL"] = "BILL";
|
|
1794
|
-
})(HistoryEntityType || (HistoryEntityType = {}));
|
|
1795
|
-
var CategoryEntityEnum;
|
|
1796
|
-
(function (CategoryEntityEnum) {
|
|
1797
|
-
CategoryEntityEnum["MATERIAL"] = "MATERIAL";
|
|
1798
|
-
CategoryEntityEnum["OPERATION"] = "OPERATION";
|
|
1799
|
-
CategoryEntityEnum["RESOURCE_LIBRARY"] = "RESOURCE_LIBRARY";
|
|
1800
|
-
CategoryEntityEnum["IMAGE_LIBRARY"] = "IMAGE_LIBRARY";
|
|
1801
|
-
CategoryEntityEnum["DEVIS_TEMPLATE"] = "DEVIS_TEMPLATE";
|
|
1802
|
-
})(CategoryEntityEnum || (CategoryEntityEnum = {}));
|
|
1803
|
-
var DevisTemplateCatProvider;
|
|
1804
|
-
(function (DevisTemplateCatProvider) {
|
|
1805
|
-
DevisTemplateCatProvider["BASIC"] = "BASIC";
|
|
1806
|
-
DevisTemplateCatProvider["ADVANCED_PIECE"] = "ADVANCED_PIECE";
|
|
1807
|
-
DevisTemplateCatProvider["ADVANCED_LOT"] = "ADVANCED_LOT";
|
|
1808
|
-
})(DevisTemplateCatProvider || (DevisTemplateCatProvider = {}));
|
|
1809
|
-
var NomenclaturesIdentifier;
|
|
1810
|
-
(function (NomenclaturesIdentifier) {
|
|
1811
|
-
NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
|
|
1812
|
-
NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
|
|
1813
|
-
NomenclaturesIdentifier["OPERATIONS_LOT"] = "OPERATIONS_LOT";
|
|
1814
|
-
NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
|
|
1815
|
-
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1816
|
-
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1817
|
-
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
1818
|
-
NomenclaturesIdentifier["MARGINS"] = "MARGINS";
|
|
1819
|
-
NomenclaturesIdentifier["TERMS_OF_SALE"] = "TERMS_OF_SALE";
|
|
1820
|
-
NomenclaturesIdentifier["NOTES_MODELS"] = "NOTES_MODELS";
|
|
1821
|
-
NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
|
|
1822
|
-
NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
|
|
1823
|
-
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1824
|
-
NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
|
|
1825
|
-
NomenclaturesIdentifier["PROJECTS_PRIORITY"] = "PROJECTS_PRIORITY";
|
|
1826
|
-
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1827
|
-
var BarCodeEnum;
|
|
1828
|
-
(function (BarCodeEnum) {
|
|
1829
|
-
BarCodeEnum["CODE128"] = "code128";
|
|
1830
|
-
BarCodeEnum["EAN13"] = "ean13";
|
|
1831
|
-
BarCodeEnum["EAN8"] = "ean8";
|
|
1832
|
-
BarCodeEnum["EAN5"] = "ean5";
|
|
1833
|
-
BarCodeEnum["EAN2"] = "ean2";
|
|
1834
|
-
BarCodeEnum["UPC"] = "upc";
|
|
1835
|
-
BarCodeEnum["CODE39"] = "code39";
|
|
1836
|
-
BarCodeEnum["ITF14"] = "itf14";
|
|
1837
|
-
BarCodeEnum["MSI"] = "msi";
|
|
1838
|
-
BarCodeEnum["PHARMACODE"] = "pharmacode";
|
|
1839
|
-
})(BarCodeEnum || (BarCodeEnum = {}));
|
|
1840
|
-
var OperationQuantityEnum;
|
|
1841
|
-
(function (OperationQuantityEnum) {
|
|
1842
|
-
OperationQuantityEnum["NOT_DEFINED"] = "NOT_DEFINED";
|
|
1843
|
-
OperationQuantityEnum["PERIMETER"] = "PERIMETER";
|
|
1844
|
-
OperationQuantityEnum["GROUND_CEILING_SURFACE"] = "GROUND_CEILING_SURFACE";
|
|
1845
|
-
OperationQuantityEnum["WALL_SURFACE"] = "WALL_SURFACE";
|
|
1846
|
-
})(OperationQuantityEnum || (OperationQuantityEnum = {}));
|
|
1847
|
-
var OperationRulesEnum;
|
|
1848
|
-
(function (OperationRulesEnum) {
|
|
1849
|
-
OperationRulesEnum["BIGGER_THAN"] = "BIGGER_THAN";
|
|
1850
|
-
OperationRulesEnum["LOWER_THAN"] = "LOWER_THAN";
|
|
1851
|
-
OperationRulesEnum["EQUAL_TO"] = "EQUAL_TO";
|
|
1852
|
-
OperationRulesEnum["BETWEEN"] = "BETWEEN";
|
|
1853
|
-
})(OperationRulesEnum || (OperationRulesEnum = {}));
|
|
1854
|
-
var ItemResponsible;
|
|
1855
|
-
(function (ItemResponsible) {
|
|
1856
|
-
ItemResponsible["NONE"] = "NONE";
|
|
1857
|
-
ItemResponsible["CLIENT"] = "CLIENT";
|
|
1858
|
-
ItemResponsible["PRO"] = "PRO";
|
|
1859
|
-
ItemResponsible["AGENT"] = "AGENT";
|
|
1860
|
-
ItemResponsible["SELLER"] = "SELLER";
|
|
1861
|
-
ItemResponsible["ENTERPRISE"] = "ENTERPRISE";
|
|
1862
|
-
ItemResponsible["PROVIDER"] = "PROVIDER";
|
|
1863
|
-
})(ItemResponsible || (ItemResponsible = {}));
|
|
1864
|
-
var ProjectPriceTypeEnum;
|
|
1865
|
-
(function (ProjectPriceTypeEnum) {
|
|
1866
|
-
ProjectPriceTypeEnum["accepted"] = "accepted";
|
|
1867
|
-
ProjectPriceTypeEnum["prospected"] = "prospected";
|
|
1868
|
-
ProjectPriceTypeEnum["rejected"] = "rejected";
|
|
1869
|
-
})(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
|
|
1870
|
-
var DevisFormatEnum;
|
|
1871
|
-
(function (DevisFormatEnum) {
|
|
1872
|
-
DevisFormatEnum["PIECE"] = "PIECE";
|
|
1873
|
-
DevisFormatEnum["LOT"] = "LOT";
|
|
1874
|
-
})(DevisFormatEnum || (DevisFormatEnum = {}));
|
|
1875
|
-
var ConfigurationsIdentifier;
|
|
1876
|
-
(function (ConfigurationsIdentifier) {
|
|
1877
|
-
ConfigurationsIdentifier["ADMIN_FORM"] = "ADMIN_FORM";
|
|
1878
|
-
ConfigurationsIdentifier["PROS_FORM"] = "PROS_FORM";
|
|
1879
|
-
ConfigurationsIdentifier["AGENTS_FORM"] = "AGENTS_FORM";
|
|
1880
|
-
ConfigurationsIdentifier["SELLERS_FORM"] = "SELLERS_FORM";
|
|
1881
|
-
})(ConfigurationsIdentifier || (ConfigurationsIdentifier = {}));
|
|
1882
|
-
var ConfigurationFieldType;
|
|
1883
|
-
(function (ConfigurationFieldType) {
|
|
1884
|
-
ConfigurationFieldType["TEXT"] = "users.admins.configPanel.inputType.text";
|
|
1885
|
-
ConfigurationFieldType["PASSWORD"] = "users.admins.configPanel.inputType.password";
|
|
1886
|
-
ConfigurationFieldType["CHECKBOX"] = "users.admins.configPanel.inputType.checkbox";
|
|
1887
|
-
ConfigurationFieldType["EMAIL"] = "users.admins.configPanel.inputType.email";
|
|
1888
|
-
ConfigurationFieldType["FILE"] = "users.admins.configPanel.inputType.file";
|
|
1889
|
-
ConfigurationFieldType["SELECT_ONE"] = "users.admins.configPanel.inputType.selectOne";
|
|
1890
|
-
ConfigurationFieldType["SELECT_MULTI"] = "users.admins.configPanel.inputType.selectMulti";
|
|
1891
|
-
ConfigurationFieldType["GOOGLE_LOCATION"] = "users.admins.configPanel.inputType.googleLocation";
|
|
1892
|
-
ConfigurationFieldType["PHONE"] = "users.admins.configPanel.inputType.phone";
|
|
1893
|
-
ConfigurationFieldType["DOCUMENT"] = "users.admins.configPanel.inputType.document";
|
|
1894
|
-
ConfigurationFieldType["CONTACTS"] = "users.admins.configPanel.inputType.contacts";
|
|
1895
|
-
ConfigurationFieldType["SIRET"] = "users.admins.configPanel.inputType.siret";
|
|
1896
|
-
ConfigurationFieldType["BUILDING_CERTIFICATIONS"] = "users.admins.configPanel.inputType.buildingCertifications";
|
|
1897
|
-
})(ConfigurationFieldType || (ConfigurationFieldType = {}));
|
|
1898
|
-
var ConfigurationDocumentType;
|
|
1899
|
-
(function (ConfigurationDocumentType) {
|
|
1900
|
-
ConfigurationDocumentType["LEGAL"] = "LEGAL";
|
|
1901
|
-
ConfigurationDocumentType["REGULATORY"] = "REGULATORY";
|
|
1902
|
-
ConfigurationDocumentType["SPECIFIC"] = "SPECIFIC";
|
|
1903
|
-
})(ConfigurationDocumentType || (ConfigurationDocumentType = {}));
|
|
1904
|
-
var LogsIdentifier;
|
|
1905
|
-
(function (LogsIdentifier) {
|
|
1906
|
-
LogsIdentifier["EXPORT_DATA"] = "EXPORT_DATA";
|
|
1907
|
-
})(LogsIdentifier || (LogsIdentifier = {}));
|
|
1908
|
-
var QueryIdentifier;
|
|
1909
|
-
(function (QueryIdentifier) {
|
|
1910
|
-
QueryIdentifier["EXPORT_EVENTS"] = "EXPORT_EVENTS";
|
|
1911
|
-
QueryIdentifier["EXPORT_BILLS"] = "EXPORT_BILLS";
|
|
1912
|
-
QueryIdentifier["EXPORT_DEVIS"] = "EXPORT_DEVIS";
|
|
1913
|
-
QueryIdentifier["EXPORT_PROJECTS"] = "EXPORT_PROJECTS";
|
|
1914
|
-
})(QueryIdentifier || (QueryIdentifier = {}));
|
|
1915
|
-
var BillIssuedReasons;
|
|
1916
|
-
(function (BillIssuedReasons) {
|
|
1917
|
-
BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
|
|
1918
|
-
BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
|
|
1919
|
-
})(BillIssuedReasons || (BillIssuedReasons = {}));
|
|
1920
|
-
var EvaluationConfigIdentifier;
|
|
1921
|
-
(function (EvaluationConfigIdentifier) {
|
|
1922
|
-
EvaluationConfigIdentifier["PRO"] = "PRO";
|
|
1923
|
-
})(EvaluationConfigIdentifier || (EvaluationConfigIdentifier = {}));
|
|
1924
|
-
var WorkOrderStatusEnum;
|
|
1925
|
-
(function (WorkOrderStatusEnum) {
|
|
1926
|
-
WorkOrderStatusEnum["CREATED"] = "CREATED";
|
|
1927
|
-
WorkOrderStatusEnum["TO_VALIDATE"] = "TO_VALIDATE";
|
|
1928
|
-
WorkOrderStatusEnum["APPROVED"] = "APPROVED";
|
|
1929
|
-
WorkOrderStatusEnum["REFUSED"] = "REFUSED";
|
|
1930
|
-
})(WorkOrderStatusEnum || (WorkOrderStatusEnum = {}));
|
|
1931
|
-
var WorkOrderPriceRange;
|
|
1932
|
-
(function (WorkOrderPriceRange) {
|
|
1933
|
-
WorkOrderPriceRange["LESS_2500"] = "LESS_2500";
|
|
1934
|
-
WorkOrderPriceRange["MORE_2500_LESS_10000"] = "MORE_2500_LESS_10000";
|
|
1935
|
-
WorkOrderPriceRange["MORE_10000_LESS_40000"] = "MORE_10000_LESS_40000";
|
|
1936
|
-
WorkOrderPriceRange["MORE_40000"] = "MORE_40000";
|
|
1937
|
-
})(WorkOrderPriceRange || (WorkOrderPriceRange = {}));
|
|
1938
|
-
var CandidatureStatus;
|
|
1939
|
-
(function (CandidatureStatus) {
|
|
1940
|
-
CandidatureStatus["VALID"] = "VALID";
|
|
1941
|
-
CandidatureStatus["NOT_VALID"] = "NOT_VALID";
|
|
1942
|
-
CandidatureStatus["NOT_ANALYSED"] = "NOT_ANALYSED";
|
|
1943
|
-
})(CandidatureStatus || (CandidatureStatus = {}));
|
|
1944
|
-
|
|
1945
|
-
var types = {
|
|
1946
|
-
__proto__: null,
|
|
1947
|
-
get BarCodeEnum () { return BarCodeEnum; },
|
|
1948
|
-
get BillDiscountType () { return BillDiscountType; },
|
|
1949
|
-
get BillDocTypeEnum () { return BillDocTypeEnum; },
|
|
1950
|
-
get BillElementType () { return BillElementType; },
|
|
1951
|
-
get BillIssuedEntity () { return BillIssuedEntity; },
|
|
1952
|
-
get BillIssuedReasons () { return BillIssuedReasons; },
|
|
1953
|
-
get BillIssuedStatus () { return BillIssuedStatus; },
|
|
1954
|
-
get BillIssuedType () { return BillIssuedType; },
|
|
1955
|
-
get BillReceivedEntity () { return BillReceivedEntity; },
|
|
1956
|
-
get BillReceivedMode () { return BillReceivedMode; },
|
|
1957
|
-
get BillReceivedStatus () { return BillReceivedStatus; },
|
|
1958
|
-
get BillReceivedType () { return BillReceivedType; },
|
|
1959
|
-
get BillType () { return BillType; },
|
|
1960
|
-
get CandidatureStatus () { return CandidatureStatus; },
|
|
1961
|
-
get CategoryEntityEnum () { return CategoryEntityEnum; },
|
|
1962
|
-
get CommercialStatusEnum () { return CommercialStatusEnum; },
|
|
1963
|
-
get ConfigurationDocumentType () { return ConfigurationDocumentType; },
|
|
1964
|
-
get ConfigurationFieldType () { return ConfigurationFieldType; },
|
|
1965
|
-
get ConfigurationsIdentifier () { return ConfigurationsIdentifier; },
|
|
1966
|
-
get DevisCommissionsEntity () { return DevisCommissionsEntity; },
|
|
1967
|
-
get DevisContractingEntity () { return DevisContractingEntity; },
|
|
1968
|
-
get DevisDocColorEnum () { return DevisDocColorEnum; },
|
|
1969
|
-
get DevisDocDurationEnum () { return DevisDocDurationEnum; },
|
|
1970
|
-
get DevisDocSectionEnum () { return DevisDocSectionEnum; },
|
|
1971
|
-
get DevisFormatEnum () { return DevisFormatEnum; },
|
|
1972
|
-
get DevisHistoryType () { return DevisHistoryType; },
|
|
1973
|
-
get DevisOriginEnum () { return DevisOriginEnum; },
|
|
1974
|
-
get DevisPdfMode () { return DevisPdfMode; },
|
|
1975
|
-
get DevisPdfSectionEnum () { return DevisPdfSectionEnum; },
|
|
1976
|
-
get DevisPdfType () { return DevisPdfType; },
|
|
1977
|
-
get DevisStatusEnum () { return DevisStatusEnum; },
|
|
1978
|
-
get DevisTemplateCatProvider () { return DevisTemplateCatProvider; },
|
|
1979
|
-
get DevisTypeEnum () { return DevisTypeEnum; },
|
|
1980
|
-
get DevisViewMode () { return DevisViewMode; },
|
|
1981
|
-
get DocumentsTypeEnum () { return DocumentsTypeEnum; },
|
|
1982
|
-
get EmailTemplate () { return EmailTemplate; },
|
|
1983
|
-
get EnterpriseProductEnum () { return EnterpriseProductEnum; },
|
|
1984
|
-
get EnterpriseStatusEnum () { return EnterpriseStatusEnum; },
|
|
1985
|
-
get EstimationOriginEnum () { return EstimationOriginEnum; },
|
|
1986
|
-
get EstimationStatusEnum () { return EstimationStatusEnum; },
|
|
1987
|
-
get EstimationTypeEnum () { return EstimationTypeEnum; },
|
|
1988
|
-
get EvaluationConfigIdentifier () { return EvaluationConfigIdentifier; },
|
|
1989
|
-
get EventsTypeEnum () { return EventsTypeEnum; },
|
|
1990
|
-
get HistoryActionEnum () { return HistoryActionEnum; },
|
|
1991
|
-
get HistoryEntityType () { return HistoryEntityType; },
|
|
1992
|
-
get ItemResponsible () { return ItemResponsible; },
|
|
1993
|
-
get LateInterest () { return LateInterest; },
|
|
1994
|
-
get LogsIdentifier () { return LogsIdentifier; },
|
|
1995
|
-
get MarketplaceOrderStatus () { return MarketplaceOrderStatus; },
|
|
1996
|
-
get MarketplaceProSkillsEnum () { return MarketplaceProSkillsEnum; },
|
|
1997
|
-
get MarketplaceStatus () { return MarketplaceStatus; },
|
|
1998
|
-
get MaterialsProviderType () { return MaterialsProviderType; },
|
|
1999
|
-
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
2000
|
-
get NotesType () { return NotesType; },
|
|
2001
|
-
get NotificationType () { return NotificationType; },
|
|
2002
|
-
get OperationQuantityEnum () { return OperationQuantityEnum; },
|
|
2003
|
-
get OperationRulesEnum () { return OperationRulesEnum; },
|
|
2004
|
-
get OperationStatusEnum () { return OperationStatusEnum; },
|
|
2005
|
-
get OrderMaterialStatus () { return OrderMaterialStatus; },
|
|
2006
|
-
get Origin () { return Origin; },
|
|
2007
|
-
get PaymentChoice () { return PaymentChoice; },
|
|
2008
|
-
get PaymentMethodTypeEnum () { return PaymentMethodTypeEnum; },
|
|
2009
|
-
get PaymentType () { return PaymentType; },
|
|
2010
|
-
get PhonesEnum () { return PhonesEnum; },
|
|
2011
|
-
get ProDocumentEmailSend () { return ProDocumentEmailSend; },
|
|
2012
|
-
get ProSkillsEnum () { return ProSkillsEnum; },
|
|
2013
|
-
get ProSpecialitiesEnum () { return ProSpecialitiesEnum; },
|
|
2014
|
-
get ProfileStatus () { return ProfileStatus; },
|
|
2015
|
-
get ProjectCategoriesEnum () { return ProjectCategoriesEnum; },
|
|
2016
|
-
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
|
|
2017
|
-
get ProjectType () { return ProjectType; },
|
|
2018
|
-
get ProjectTypeEnum () { return ProjectTypeEnum; },
|
|
2019
|
-
get QueryIdentifier () { return QueryIdentifier; },
|
|
2020
|
-
get ROLE () { return ROLE; },
|
|
2021
|
-
get ReceptionVoucherStatus () { return ReceptionVoucherStatus; },
|
|
2022
|
-
get SendgridTemplates () { return SendgridTemplates; },
|
|
2023
|
-
get TermsOfPayment () { return TermsOfPayment; },
|
|
2024
|
-
get VisitReportStatus () { return VisitReportStatus; },
|
|
2025
|
-
get WorkOrderPriceRange () { return WorkOrderPriceRange; },
|
|
2026
|
-
get WorkOrderStatusEnum () { return WorkOrderStatusEnum; }
|
|
2027
|
-
};
|
|
2028
|
-
|
|
2029
|
-
function isBuffer(obj) {
|
|
2030
|
-
return obj && obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
|
|
2031
|
-
}
|
|
2032
|
-
function keyIdentity(key) {
|
|
2033
|
-
return key;
|
|
2034
|
-
}
|
|
2035
|
-
function flatten(target, options) {
|
|
2036
|
-
var opts = options || {};
|
|
2037
|
-
var delimiter = opts.delimiter || '.';
|
|
2038
|
-
var maxDepth = opts.maxDepth;
|
|
2039
|
-
var transformKey = opts.transformKey || keyIdentity;
|
|
2040
|
-
var output = {};
|
|
2041
|
-
function step(object, prev, currentDepth) {
|
|
2042
|
-
var depth = currentDepth || 1;
|
|
2043
|
-
Object.keys(object).forEach(function (key) {
|
|
2044
|
-
var value = object[key];
|
|
2045
|
-
var isarray = opts.safe && Array.isArray(value);
|
|
2046
|
-
var type = Object.prototype.toString.call(value);
|
|
2047
|
-
var isbuffer = isBuffer(value);
|
|
2048
|
-
var isobject = type === '[object Object]' || type === '[object Array]';
|
|
2049
|
-
var newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
|
|
2050
|
-
if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!maxDepth || depth < maxDepth)) {
|
|
2051
|
-
step(value, newKey, depth + 1);
|
|
2052
|
-
}
|
|
2053
|
-
output[newKey] = value;
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
step(target, null, 0);
|
|
2057
|
-
return output;
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
var createEvent = function createEvent(type, data, meta) {
|
|
2061
|
-
return {
|
|
2062
|
-
data: data,
|
|
2063
|
-
type: type,
|
|
2064
|
-
meta: meta
|
|
2065
|
-
};
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
var requests = {
|
|
2069
|
-
__proto__: null
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
|
-
var index = {
|
|
2073
|
-
__proto__: null,
|
|
2074
|
-
Requests: requests
|
|
2075
|
-
};
|
|
2076
|
-
|
|
2077
|
-
export { Environments, ROLE$1 as ROLE, index as WhatsApp, acls, types as articho, createEvent, flatten, getEnv, index$1 as getPlatformConfiguration, helpers, getPath as path, reversePathName, index$2 as security, uid };
|
|
2078
|
-
//# sourceMappingURL=config.esm.js.map
|