@placeshakr/config 10.19.33-alpha.1 → 10.19.33-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.cjs.development.js +66 -221
- package/dist/config.cjs.development.js.map +1 -1
- package/dist/config.cjs.production.min.js +1 -1
- package/dist/config.cjs.production.min.js.map +1 -1
- package/dist/config.esm.js +66 -223
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/types.d.ts +2 -0
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/environment/base.ts +2 -0
- package/src/environment/types.ts +2 -0
- package/src/helpers/index.ts +4 -0
- package/src/types.ts +1 -1
|
@@ -14,15 +14,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
14
14
|
/**
|
|
15
15
|
* security context
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
17
|
var index = (function (env) {
|
|
20
18
|
var orderedAccess = [exports.ROLE.CLIENT, exports.ROLE.PRO, exports.ROLE.AGENT, exports.ROLE.ADMIN, exports.ROLE.SUPERADMIN];
|
|
21
|
-
|
|
22
19
|
var hasRole = function hasRole(claims) {
|
|
23
20
|
return !claims || !claims[env.security.claims.role] ? false : true;
|
|
24
21
|
};
|
|
25
|
-
|
|
26
22
|
var is = function is(claims, role) {
|
|
27
23
|
if (!hasRole(claims)) return false;
|
|
28
24
|
return claims[env.security.claims.role] === role;
|
|
@@ -33,8 +29,6 @@ var index = (function (env) {
|
|
|
33
29
|
* @param role
|
|
34
30
|
* @param claims
|
|
35
31
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
32
|
var canActAs = function canActAs(role, claims) {
|
|
39
33
|
var userRole = getRole(claims);
|
|
40
34
|
return orderedAccess.indexOf(role) < orderedAccess.indexOf(userRole);
|
|
@@ -43,8 +37,6 @@ var index = (function (env) {
|
|
|
43
37
|
* Get user role
|
|
44
38
|
* @param claims
|
|
45
39
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
40
|
var getRole = function getRole(claims) {
|
|
49
41
|
return hasRole(claims) ? claims[env.security.claims.role] : null;
|
|
50
42
|
};
|
|
@@ -52,14 +44,11 @@ var index = (function (env) {
|
|
|
52
44
|
* Get all the roles on which an user can impersonate
|
|
53
45
|
* @param claims
|
|
54
46
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
47
|
var getRoles = function getRoles(claims) {
|
|
58
48
|
return orderedAccess.filter(function (role) {
|
|
59
49
|
return canActAs(role, claims);
|
|
60
50
|
});
|
|
61
51
|
};
|
|
62
|
-
|
|
63
52
|
return {
|
|
64
53
|
is: is,
|
|
65
54
|
canActAs: canActAs,
|
|
@@ -68,13 +57,20 @@ var index = (function (env) {
|
|
|
68
57
|
};
|
|
69
58
|
});
|
|
70
59
|
|
|
71
|
-
var acls = ['project.view', 'project.edit', 'project.create', 'project.delete', 'project.progress.edit',
|
|
72
|
-
|
|
73
|
-
'project.
|
|
74
|
-
|
|
75
|
-
'project.
|
|
76
|
-
|
|
77
|
-
'project.
|
|
60
|
+
var acls = ['project.view', 'project.edit', 'project.create', 'project.delete', 'project.progress.edit',
|
|
61
|
+
// assignations
|
|
62
|
+
'project.assign.pro', 'project.assign.agent', 'project.assign.client', 'project.assign.seller', 'project.unassign.pro', 'project.unassign.agent', 'project.unassign.client', 'project.unassign.seller',
|
|
63
|
+
// other actions
|
|
64
|
+
'project.validate', 'project.status.edit', 'project.pro.prices.view', 'project.enterprise.prices.view', 'project.sync.agenda', 'project.estimation',
|
|
65
|
+
// devis
|
|
66
|
+
'project.devis.create', 'project.devis.edit', 'project.devis.delete',
|
|
67
|
+
// notes
|
|
68
|
+
'project.note.view', 'project.note.create', 'project.note.edit', 'project.note.delete',
|
|
69
|
+
// documents
|
|
70
|
+
'project.document.view', 'project.document.create', 'project.document.edit', 'project.document.delete',
|
|
71
|
+
// medias
|
|
72
|
+
'project.media.view', 'project.media.create', 'project.media.edit', 'project.media.delete',
|
|
73
|
+
// events
|
|
78
74
|
'project.event.view', 'project.event.create', 'project.event.edit',
|
|
79
75
|
/**
|
|
80
76
|
* Devis policy
|
|
@@ -83,17 +79,28 @@ var acls = ['project.view', 'project.edit', 'project.create', 'project.delete',
|
|
|
83
79
|
/**
|
|
84
80
|
* Configuration
|
|
85
81
|
*/
|
|
86
|
-
'configuration.view',
|
|
87
|
-
|
|
88
|
-
'configuration.
|
|
89
|
-
|
|
90
|
-
'configuration.
|
|
91
|
-
|
|
92
|
-
'configuration.
|
|
93
|
-
|
|
94
|
-
'configuration.
|
|
95
|
-
|
|
96
|
-
'configuration.
|
|
82
|
+
'configuration.view',
|
|
83
|
+
// status
|
|
84
|
+
'configuration.status.view', 'configuration.status.create', 'configuration.status.edit', 'configuration.status.delete',
|
|
85
|
+
// providers
|
|
86
|
+
'configuration.provider.view', 'configuration.provider.edit', 'configuration.provider.delete', 'configuration.provider.create',
|
|
87
|
+
// material providers
|
|
88
|
+
'configuration.material.provider.view', 'configuration.material.provider.edit', 'configuration.material.provider.delete', 'configuration.material.provider.create',
|
|
89
|
+
// materials
|
|
90
|
+
'configuration.material.view', 'configuration.material.edit', 'configuration.material.delete', 'configuration.material.create',
|
|
91
|
+
// operations
|
|
92
|
+
'configuration.operation.view', 'configuration.operation.edit', 'configuration.operation.delete', 'configuration.operation.create',
|
|
93
|
+
// devis templates
|
|
94
|
+
'configuration.devis.template.view', 'configuration.devis.template.edit', 'configuration.devis.template.delete', 'configuration.devis.template.create',
|
|
95
|
+
// team
|
|
96
|
+
'configuration.team.view',
|
|
97
|
+
// users (pro)
|
|
98
|
+
'configuration.pro.edit', 'configuration.pro.delete', 'configuration.pro.create', 'configuration.pro.view',
|
|
99
|
+
// users (agent)
|
|
100
|
+
'configuration.agent.edit', 'configuration.agent.delete', 'configuration.agent.create', 'configuration.agent.view',
|
|
101
|
+
// users (admins)
|
|
102
|
+
'configuration.admin.edit', 'configuration.admin.delete', 'configuration.admin.create', 'configuration.admin.view',
|
|
103
|
+
// enterprise
|
|
97
104
|
'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'];
|
|
98
105
|
|
|
99
106
|
var productionEnvironment = {
|
|
@@ -158,6 +165,7 @@ var productionEnvironment = {
|
|
|
158
165
|
indexes: 'enterprises/{enterpriseId}/indexes',
|
|
159
166
|
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
160
167
|
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
|
|
168
|
+
categories: 'enterprises/{enterpriseId}/categories',
|
|
161
169
|
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
|
|
162
170
|
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
|
|
163
171
|
operations: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations',
|
|
@@ -208,6 +216,7 @@ var productionEnvironment = {
|
|
|
208
216
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
|
|
209
217
|
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
210
218
|
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
|
|
219
|
+
category: 'enterprises/{enterpriseId}/categories/{categoryId}',
|
|
211
220
|
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
|
|
212
221
|
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
|
|
213
222
|
operation: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}',
|
|
@@ -451,20 +460,17 @@ var productionEnvironment = {
|
|
|
451
460
|
};
|
|
452
461
|
|
|
453
462
|
function _extends() {
|
|
454
|
-
_extends = Object.assign
|
|
463
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
455
464
|
for (var i = 1; i < arguments.length; i++) {
|
|
456
465
|
var source = arguments[i];
|
|
457
|
-
|
|
458
466
|
for (var key in source) {
|
|
459
467
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
460
468
|
target[key] = source[key];
|
|
461
469
|
}
|
|
462
470
|
}
|
|
463
471
|
}
|
|
464
|
-
|
|
465
472
|
return target;
|
|
466
473
|
};
|
|
467
|
-
|
|
468
474
|
return _extends.apply(this, arguments);
|
|
469
475
|
}
|
|
470
476
|
|
|
@@ -474,14 +480,12 @@ var dev = function dev(base) {
|
|
|
474
480
|
name: 'development'
|
|
475
481
|
});
|
|
476
482
|
};
|
|
477
|
-
|
|
478
483
|
var staging = function staging(base) {
|
|
479
484
|
return _extends({}, base, {
|
|
480
485
|
isTest: false,
|
|
481
486
|
name: 'staging'
|
|
482
487
|
});
|
|
483
488
|
};
|
|
484
|
-
|
|
485
489
|
var test = function test(base) {
|
|
486
490
|
return _extends({}, base, {
|
|
487
491
|
schema: _extends({}, base.schema, {
|
|
@@ -521,7 +525,6 @@ var test = function test(base) {
|
|
|
521
525
|
name: 'test'
|
|
522
526
|
});
|
|
523
527
|
};
|
|
524
|
-
|
|
525
528
|
var emulator = function emulator(base) {
|
|
526
529
|
return _extends({}, base, {
|
|
527
530
|
schema: _extends({}, base.schema, {
|
|
@@ -574,25 +577,18 @@ var emulator = function emulator(base) {
|
|
|
574
577
|
*
|
|
575
578
|
* @param envName
|
|
576
579
|
*/
|
|
577
|
-
|
|
578
|
-
|
|
579
580
|
var getEnv = function getEnv(envName) {
|
|
580
581
|
switch (envName) {
|
|
581
582
|
case exports.Environments.dev:
|
|
582
583
|
return dev(productionEnvironment);
|
|
583
|
-
|
|
584
584
|
case exports.Environments.staging:
|
|
585
585
|
return staging(productionEnvironment);
|
|
586
|
-
|
|
587
586
|
case exports.Environments.production:
|
|
588
587
|
return productionEnvironment;
|
|
589
|
-
|
|
590
588
|
case exports.Environments.test:
|
|
591
589
|
return test(productionEnvironment);
|
|
592
|
-
|
|
593
590
|
case exports.Environments.emulator:
|
|
594
591
|
return emulator(productionEnvironment);
|
|
595
|
-
|
|
596
592
|
default:
|
|
597
593
|
return productionEnvironment;
|
|
598
594
|
}
|
|
@@ -644,6 +640,7 @@ var helpers = {
|
|
|
644
640
|
histories: /*#__PURE__*/FactoryCreateFunction(),
|
|
645
641
|
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
646
642
|
nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
|
|
643
|
+
categories: /*#__PURE__*/FactoryCreateFunction(),
|
|
647
644
|
operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
|
|
648
645
|
operations: /*#__PURE__*/FactoryCreateFunction(),
|
|
649
646
|
operationMaterials: /*#__PURE__*/FactoryCreateFunction(),
|
|
@@ -652,7 +649,8 @@ var helpers = {
|
|
|
652
649
|
enterpriseDocuments: /*#__PURE__*/FactoryCreateFunction(),
|
|
653
650
|
enterpriseMedias: /*#__PURE__*/FactoryCreateFunction(),
|
|
654
651
|
configurations: /*#__PURE__*/FactoryCreateFunction(),
|
|
655
|
-
systemVersions: /*#__PURE__*/FactoryCreateFunction()
|
|
652
|
+
systemVersions: /*#__PURE__*/FactoryCreateFunction(),
|
|
653
|
+
indexes: /*#__PURE__*/FactoryCreateFunction()
|
|
656
654
|
};
|
|
657
655
|
|
|
658
656
|
/**
|
|
@@ -676,13 +674,13 @@ var uid = {
|
|
|
676
674
|
generate: /*#__PURE__*/function () {
|
|
677
675
|
// Timestamp of last push, used to prevent local
|
|
678
676
|
// collisions if you push twice in one ms.
|
|
679
|
-
var lastPushTime = 0;
|
|
677
|
+
var lastPushTime = 0;
|
|
678
|
+
// We generate 72-bits of randomness which get
|
|
680
679
|
// turned into 12 characters and appended to the
|
|
681
680
|
// timestamp to prevent collisions with other clients.
|
|
682
681
|
// We store the last characters we generated because
|
|
683
682
|
// in the event of a collision, we'll use those same
|
|
684
683
|
// characters except "incremented" by one.
|
|
685
|
-
|
|
686
684
|
var lastRandChars = [];
|
|
687
685
|
return function () {
|
|
688
686
|
var now = new Date().getTime();
|
|
@@ -690,41 +688,35 @@ var uid = {
|
|
|
690
688
|
lastPushTime = now;
|
|
691
689
|
var timeStampChars = new Array(8);
|
|
692
690
|
var i;
|
|
693
|
-
|
|
694
691
|
for (i = 7; i >= 0; i--) {
|
|
695
|
-
timeStampChars[i] = ASCII_CHARS.charAt(now % 62);
|
|
692
|
+
timeStampChars[i] = ASCII_CHARS.charAt(now % 62);
|
|
693
|
+
// NOTE: Can't use << here because javascript
|
|
696
694
|
// will convert to int and lose the upper bits.
|
|
697
|
-
|
|
698
695
|
now = Math.floor(now / 62);
|
|
699
696
|
}
|
|
700
|
-
|
|
701
697
|
if (now !== 0) throw new Error('We should have converted the entire timestamp.');
|
|
702
698
|
var id = timeStampChars.join('');
|
|
703
|
-
|
|
704
699
|
if (!duplicateTime) {
|
|
705
700
|
for (i = 0; i < 12; i++) {
|
|
706
701
|
lastRandChars[i] = Math.floor(Math.random() * 62);
|
|
707
702
|
}
|
|
708
|
-
}
|
|
703
|
+
}
|
|
704
|
+
// If the timestamp hasn't changed since
|
|
709
705
|
// last push, use the same random number,
|
|
710
706
|
// except incremented by 1.
|
|
711
707
|
else {
|
|
712
708
|
for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
|
|
713
709
|
lastRandChars[i] = 0;
|
|
714
710
|
}
|
|
715
|
-
|
|
716
711
|
lastRandChars[i]++;
|
|
717
712
|
}
|
|
718
|
-
|
|
719
713
|
for (i = 0; i < 12; i++) {
|
|
720
714
|
id += ASCII_CHARS.charAt(lastRandChars[i]);
|
|
721
715
|
}
|
|
722
|
-
|
|
723
716
|
if (id.length !== 20) throw new Error('Length should be 20.');
|
|
724
717
|
return id;
|
|
725
718
|
};
|
|
726
719
|
}(),
|
|
727
|
-
|
|
728
720
|
/**
|
|
729
721
|
* Timestamp
|
|
730
722
|
* Gets timestamp from provided uid.
|
|
@@ -733,11 +725,9 @@ var uid = {
|
|
|
733
725
|
return function (id, asDate) {
|
|
734
726
|
var time = 0;
|
|
735
727
|
var data = id.substring(0, 8);
|
|
736
|
-
|
|
737
728
|
for (var i = 0; i < 8; i++) {
|
|
738
729
|
time = time * 62 + ASCII_CHARS.indexOf(data[i]);
|
|
739
730
|
}
|
|
740
|
-
|
|
741
731
|
if (asDate) return new Date(time);
|
|
742
732
|
return time;
|
|
743
733
|
};
|
|
@@ -769,27 +759,21 @@ var getPath = function getPath(path, params) {
|
|
|
769
759
|
if (params === void 0) {
|
|
770
760
|
params = {};
|
|
771
761
|
}
|
|
772
|
-
|
|
773
762
|
var regex = new RegExp(/\{(\w+)\}*/gm);
|
|
774
763
|
var m;
|
|
775
764
|
var generatedPath = path.toString();
|
|
776
|
-
|
|
777
765
|
do {
|
|
778
766
|
m = regex.exec(generatedPath);
|
|
779
|
-
|
|
780
767
|
if (m) {
|
|
781
768
|
var _m = m,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
769
|
+
match = _m[0],
|
|
770
|
+
paramName = _m[1];
|
|
785
771
|
if (!params.hasOwnProperty(paramName)) {
|
|
786
772
|
throw new Error("Param \"" + paramName + "\" is missing from path params");
|
|
787
773
|
}
|
|
788
|
-
|
|
789
774
|
generatedPath = generatedPath.split(match).join(String(params[paramName]));
|
|
790
775
|
}
|
|
791
776
|
} while (m !== null);
|
|
792
|
-
|
|
793
777
|
return generatedPath;
|
|
794
778
|
};
|
|
795
779
|
|
|
@@ -907,7 +891,8 @@ var createProducts = function createProducts(params) {
|
|
|
907
891
|
tax_rates: params.plus.tax_rates
|
|
908
892
|
},
|
|
909
893
|
tariffs: params.plus.tariffs
|
|
910
|
-
}
|
|
894
|
+
}
|
|
895
|
+
// test_1: {
|
|
911
896
|
// id: params.test_1.id,
|
|
912
897
|
// internal: 'test_1',
|
|
913
898
|
// product: {
|
|
@@ -1043,8 +1028,8 @@ var createProducts = function createProducts(params) {
|
|
|
1043
1028
|
// },
|
|
1044
1029
|
// tariffs: params.test_4.tariffs,
|
|
1045
1030
|
// },
|
|
1046
|
-
|
|
1047
1031
|
};
|
|
1032
|
+
|
|
1048
1033
|
return products;
|
|
1049
1034
|
};
|
|
1050
1035
|
|
|
@@ -1095,13 +1080,14 @@ var testing = {
|
|
|
1095
1080
|
usageType: 'licensed',
|
|
1096
1081
|
type: 'base'
|
|
1097
1082
|
}
|
|
1098
|
-
}
|
|
1083
|
+
}
|
|
1084
|
+
// prices: {
|
|
1099
1085
|
// monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1100
1086
|
// additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1101
1087
|
// },
|
|
1102
1088
|
// additionalUserPrice: 10,
|
|
1103
|
-
|
|
1104
1089
|
},
|
|
1090
|
+
|
|
1105
1091
|
plus: {
|
|
1106
1092
|
id: 'prod_KzmyY1ysEOeK93',
|
|
1107
1093
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
@@ -1113,7 +1099,8 @@ var testing = {
|
|
|
1113
1099
|
type: 'base'
|
|
1114
1100
|
}
|
|
1115
1101
|
}
|
|
1116
|
-
}
|
|
1102
|
+
}
|
|
1103
|
+
// test_1: {
|
|
1117
1104
|
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1118
1105
|
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1119
1106
|
// tariffs: {
|
|
@@ -1153,8 +1140,8 @@ var testing = {
|
|
|
1153
1140
|
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1154
1141
|
// },
|
|
1155
1142
|
// },
|
|
1156
|
-
|
|
1157
1143
|
};
|
|
1144
|
+
|
|
1158
1145
|
var production = {
|
|
1159
1146
|
classic: {
|
|
1160
1147
|
id: 'prod_KzmYFhrWXrzWdR',
|
|
@@ -1215,7 +1202,8 @@ var production = {
|
|
|
1215
1202
|
type: 'base'
|
|
1216
1203
|
}
|
|
1217
1204
|
}
|
|
1218
|
-
}
|
|
1205
|
+
}
|
|
1206
|
+
// test_1: {
|
|
1219
1207
|
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1220
1208
|
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1221
1209
|
// tariffs: {
|
|
@@ -1255,20 +1243,17 @@ var production = {
|
|
|
1255
1243
|
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1256
1244
|
// },
|
|
1257
1245
|
// },
|
|
1258
|
-
|
|
1259
1246
|
};
|
|
1260
1247
|
/**
|
|
1261
1248
|
*
|
|
1262
1249
|
* @param envName
|
|
1263
1250
|
*/
|
|
1264
|
-
|
|
1265
1251
|
var index$1 = (function (envName) {
|
|
1266
1252
|
if (envName === 'production') return createProducts(production);
|
|
1267
1253
|
return createProducts(testing);
|
|
1268
1254
|
});
|
|
1269
1255
|
|
|
1270
1256
|
var ROLE;
|
|
1271
|
-
|
|
1272
1257
|
(function (ROLE) {
|
|
1273
1258
|
ROLE["CLIENT"] = "client";
|
|
1274
1259
|
ROLE["SELLER"] = "seller";
|
|
@@ -1278,33 +1263,25 @@ var ROLE;
|
|
|
1278
1263
|
ROLE["OWNER"] = "owner";
|
|
1279
1264
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
1280
1265
|
})(ROLE || (ROLE = {}));
|
|
1281
|
-
|
|
1282
1266
|
var VisitReportStatus;
|
|
1283
|
-
|
|
1284
1267
|
(function (VisitReportStatus) {
|
|
1285
1268
|
VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
1286
1269
|
VisitReportStatus["VALID"] = "VALID";
|
|
1287
1270
|
})(VisitReportStatus || (VisitReportStatus = {}));
|
|
1288
|
-
|
|
1289
1271
|
var DevisCommissionsEntity;
|
|
1290
|
-
|
|
1291
1272
|
(function (DevisCommissionsEntity) {
|
|
1292
1273
|
DevisCommissionsEntity["pro"] = "pro";
|
|
1293
1274
|
DevisCommissionsEntity["provider"] = "provider";
|
|
1294
1275
|
DevisCommissionsEntity["enterprise"] = "enterprise";
|
|
1295
1276
|
})(DevisCommissionsEntity || (DevisCommissionsEntity = {}));
|
|
1296
|
-
|
|
1297
1277
|
var DevisHistoryType;
|
|
1298
|
-
|
|
1299
1278
|
(function (DevisHistoryType) {
|
|
1300
1279
|
DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
1301
1280
|
DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
|
|
1302
1281
|
DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
|
|
1303
1282
|
DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
|
|
1304
1283
|
})(DevisHistoryType || (DevisHistoryType = {}));
|
|
1305
|
-
|
|
1306
1284
|
var DevisDocSectionEnum;
|
|
1307
|
-
|
|
1308
1285
|
(function (DevisDocSectionEnum) {
|
|
1309
1286
|
DevisDocSectionEnum["PRESENTATION"] = "PRESENTATION";
|
|
1310
1287
|
DevisDocSectionEnum["RESUME"] = "RESUME";
|
|
@@ -1319,62 +1296,48 @@ var DevisDocSectionEnum;
|
|
|
1319
1296
|
DevisDocSectionEnum["CGV"] = "CGV";
|
|
1320
1297
|
DevisDocSectionEnum["CERFA_CERTIFICATE"] = "CERFA_CERTIFICATE";
|
|
1321
1298
|
})(DevisDocSectionEnum || (DevisDocSectionEnum = {}));
|
|
1322
|
-
|
|
1323
1299
|
var DevisDocColorEnum;
|
|
1324
|
-
|
|
1325
1300
|
(function (DevisDocColorEnum) {
|
|
1326
1301
|
DevisDocColorEnum["PRIMARY"] = "PRIMARY";
|
|
1327
1302
|
DevisDocColorEnum["SECONDARY"] = "SECONDARY";
|
|
1328
1303
|
})(DevisDocColorEnum || (DevisDocColorEnum = {}));
|
|
1329
|
-
|
|
1330
1304
|
var DevisDocDurationEnum;
|
|
1331
|
-
|
|
1332
1305
|
(function (DevisDocDurationEnum) {
|
|
1333
1306
|
DevisDocDurationEnum["DAYS"] = "DAYS";
|
|
1334
1307
|
DevisDocDurationEnum["WEEKS"] = "WEEKS";
|
|
1335
1308
|
DevisDocDurationEnum["MONTHS"] = "MONTHS";
|
|
1336
1309
|
DevisDocDurationEnum["YEARS"] = "YEARS";
|
|
1337
1310
|
})(DevisDocDurationEnum || (DevisDocDurationEnum = {}));
|
|
1338
|
-
|
|
1339
1311
|
var MaterialsProviderType;
|
|
1340
|
-
|
|
1341
1312
|
(function (MaterialsProviderType) {
|
|
1342
1313
|
// created by the enterprises and use algolia index 'materials'
|
|
1343
|
-
MaterialsProviderType["INTERNAL"] = "internal";
|
|
1344
|
-
|
|
1345
|
-
MaterialsProviderType["API"] = "api";
|
|
1346
|
-
|
|
1314
|
+
MaterialsProviderType["INTERNAL"] = "internal";
|
|
1315
|
+
// any catalog that needs an external connection
|
|
1316
|
+
MaterialsProviderType["API"] = "api";
|
|
1317
|
+
// every catalog created on the super-admin and use algolia index 'system-materials'
|
|
1347
1318
|
MaterialsProviderType["SYSTEM"] = "system";
|
|
1348
1319
|
})(MaterialsProviderType || (MaterialsProviderType = {}));
|
|
1349
|
-
|
|
1350
1320
|
var ProjectType;
|
|
1351
|
-
|
|
1352
1321
|
(function (ProjectType) {
|
|
1353
1322
|
ProjectType["ONE_PIECE"] = "ONE_PIECE";
|
|
1354
1323
|
ProjectType["FULL"] = "FULL";
|
|
1355
1324
|
ProjectType["COMPOUND"] = "COMPOUND";
|
|
1356
1325
|
ProjectType["CHILD"] = "CHILD";
|
|
1357
1326
|
})(ProjectType || (ProjectType = {}));
|
|
1358
|
-
|
|
1359
1327
|
var OperationStatusEnum;
|
|
1360
|
-
|
|
1361
1328
|
(function (OperationStatusEnum) {
|
|
1362
1329
|
OperationStatusEnum["TODO"] = "TODO";
|
|
1363
1330
|
OperationStatusEnum["INPROGRESS"] = "INPROGRESS";
|
|
1364
1331
|
OperationStatusEnum["DONE"] = "DONE";
|
|
1365
1332
|
})(OperationStatusEnum || (OperationStatusEnum = {}));
|
|
1366
|
-
|
|
1367
1333
|
var NotesType;
|
|
1368
|
-
|
|
1369
1334
|
(function (NotesType) {
|
|
1370
1335
|
NotesType["NOTE"] = "NOTE";
|
|
1371
1336
|
NotesType["PROBLEM"] = "PROBLEM";
|
|
1372
1337
|
NotesType["IMPORTANT"] = "IMPORTANT";
|
|
1373
1338
|
NotesType["DELIVERY"] = "DELIVERY";
|
|
1374
1339
|
})(NotesType || (NotesType = {}));
|
|
1375
|
-
|
|
1376
1340
|
var NotificationType;
|
|
1377
|
-
|
|
1378
1341
|
(function (NotificationType) {
|
|
1379
1342
|
NotificationType[NotificationType["SUCCESS"] = 0] = "SUCCESS";
|
|
1380
1343
|
NotificationType[NotificationType["INFO"] = 1] = "INFO";
|
|
@@ -1382,9 +1345,7 @@ var NotificationType;
|
|
|
1382
1345
|
NotificationType[NotificationType["DANGER"] = 3] = "DANGER";
|
|
1383
1346
|
NotificationType[NotificationType["TOAST"] = 4] = "TOAST";
|
|
1384
1347
|
})(NotificationType || (NotificationType = {}));
|
|
1385
|
-
|
|
1386
1348
|
var DevisStatusEnum;
|
|
1387
|
-
|
|
1388
1349
|
(function (DevisStatusEnum) {
|
|
1389
1350
|
DevisStatusEnum["CREATED"] = "CREATED";
|
|
1390
1351
|
DevisStatusEnum["SENT"] = "SENT";
|
|
@@ -1392,44 +1353,34 @@ var DevisStatusEnum;
|
|
|
1392
1353
|
DevisStatusEnum["REFUSED"] = "REFUSED";
|
|
1393
1354
|
DevisStatusEnum["ABANDONED"] = "ABANDONED";
|
|
1394
1355
|
})(DevisStatusEnum || (DevisStatusEnum = {}));
|
|
1395
|
-
|
|
1396
1356
|
var DevisTypeEnum;
|
|
1397
|
-
|
|
1398
1357
|
(function (DevisTypeEnum) {
|
|
1399
1358
|
DevisTypeEnum["DEVIS"] = "DEVIS";
|
|
1400
1359
|
DevisTypeEnum["SAV"] = "SAV";
|
|
1401
1360
|
DevisTypeEnum["TS"] = "TS";
|
|
1402
1361
|
})(DevisTypeEnum || (DevisTypeEnum = {}));
|
|
1403
|
-
|
|
1404
1362
|
var DevisViewMode;
|
|
1405
|
-
|
|
1406
1363
|
(function (DevisViewMode) {
|
|
1407
1364
|
DevisViewMode[DevisViewMode["HOME"] = 0] = "HOME";
|
|
1408
1365
|
DevisViewMode[DevisViewMode["GENERAL"] = 1] = "GENERAL";
|
|
1409
1366
|
DevisViewMode[DevisViewMode["PRO"] = 2] = "PRO";
|
|
1410
1367
|
DevisViewMode[DevisViewMode["CLIENT"] = 3] = "CLIENT";
|
|
1411
1368
|
})(DevisViewMode || (DevisViewMode = {}));
|
|
1412
|
-
|
|
1413
1369
|
var DevisPdfSectionEnum;
|
|
1414
|
-
|
|
1415
1370
|
(function (DevisPdfSectionEnum) {
|
|
1416
1371
|
DevisPdfSectionEnum["FINANCIAL_HELP"] = "FINANCIAL_HELP";
|
|
1417
1372
|
DevisPdfSectionEnum["PROJECT"] = "PROJECT";
|
|
1418
1373
|
DevisPdfSectionEnum["CLIENT"] = "CLIENT";
|
|
1419
1374
|
DevisPdfSectionEnum["PROJECT_MANAGER"] = "PROJECT_MANAGER";
|
|
1420
1375
|
})(DevisPdfSectionEnum || (DevisPdfSectionEnum = {}));
|
|
1421
|
-
|
|
1422
1376
|
var DocumentsTypeEnum;
|
|
1423
|
-
|
|
1424
1377
|
(function (DocumentsTypeEnum) {
|
|
1425
1378
|
DocumentsTypeEnum["DEVIS"] = "DEVIS";
|
|
1426
1379
|
DocumentsTypeEnum["DOCUMENT"] = "DOCUMENT";
|
|
1427
1380
|
DocumentsTypeEnum["CLIENT"] = "CLIENT";
|
|
1428
1381
|
DocumentsTypeEnum["OTHER"] = "OTHER";
|
|
1429
1382
|
})(DocumentsTypeEnum || (DocumentsTypeEnum = {}));
|
|
1430
|
-
|
|
1431
1383
|
var EventsTypeEnum;
|
|
1432
|
-
|
|
1433
1384
|
(function (EventsTypeEnum) {
|
|
1434
1385
|
EventsTypeEnum["OTHER"] = "AUTRE";
|
|
1435
1386
|
EventsTypeEnum["VISIT"] = "VISIT";
|
|
@@ -1439,23 +1390,17 @@ var EventsTypeEnum;
|
|
|
1439
1390
|
EventsTypeEnum["TECHNICAL_STATEMENT"] = "TECHNICAL_STATEMENT";
|
|
1440
1391
|
EventsTypeEnum["TS_DESIGN"] = "TS_DESIGN";
|
|
1441
1392
|
})(EventsTypeEnum || (EventsTypeEnum = {}));
|
|
1442
|
-
|
|
1443
1393
|
var PaymentMethodTypeEnum;
|
|
1444
|
-
|
|
1445
1394
|
(function (PaymentMethodTypeEnum) {
|
|
1446
1395
|
PaymentMethodTypeEnum["CREDIT_CARD"] = "CREDIT_CARD";
|
|
1447
1396
|
PaymentMethodTypeEnum["BANK_TRANSFERT"] = "BANK_TRANSFERT";
|
|
1448
1397
|
})(PaymentMethodTypeEnum || (PaymentMethodTypeEnum = {}));
|
|
1449
|
-
|
|
1450
1398
|
var BillDocTypeEnum;
|
|
1451
|
-
|
|
1452
1399
|
(function (BillDocTypeEnum) {
|
|
1453
1400
|
BillDocTypeEnum["BILL"] = "BILL";
|
|
1454
1401
|
BillDocTypeEnum["PURCHASE_ORDER"] = "PURCHASE_ORDER";
|
|
1455
1402
|
})(BillDocTypeEnum || (BillDocTypeEnum = {}));
|
|
1456
|
-
|
|
1457
1403
|
var BillIssuedStatus;
|
|
1458
|
-
|
|
1459
1404
|
(function (BillIssuedStatus) {
|
|
1460
1405
|
BillIssuedStatus["PROVISIONAL"] = "PROVISIONAL";
|
|
1461
1406
|
BillIssuedStatus["WAITING"] = "WAITING";
|
|
@@ -1465,9 +1410,7 @@ var BillIssuedStatus;
|
|
|
1465
1410
|
BillIssuedStatus["BLOCKED"] = "BLOCKED";
|
|
1466
1411
|
BillIssuedStatus["CANCELED"] = "CANCELED";
|
|
1467
1412
|
})(BillIssuedStatus || (BillIssuedStatus = {}));
|
|
1468
|
-
|
|
1469
1413
|
var BillReceivedStatus;
|
|
1470
|
-
|
|
1471
1414
|
(function (BillReceivedStatus) {
|
|
1472
1415
|
BillReceivedStatus["PROVISIONAL"] = "PROVISIONAL";
|
|
1473
1416
|
BillReceivedStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
|
|
@@ -1481,25 +1424,19 @@ var BillReceivedStatus;
|
|
|
1481
1424
|
BillReceivedStatus["REFUSED"] = "REFUSED";
|
|
1482
1425
|
BillReceivedStatus["BLOCKED"] = "BLOCKED";
|
|
1483
1426
|
})(BillReceivedStatus || (BillReceivedStatus = {}));
|
|
1484
|
-
|
|
1485
1427
|
var ReceptionVoucherStatus;
|
|
1486
|
-
|
|
1487
1428
|
(function (ReceptionVoucherStatus) {
|
|
1488
1429
|
ReceptionVoucherStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
|
|
1489
1430
|
ReceptionVoucherStatus["WAITING_ACCOUNT_VALIDATION"] = "WAITING_ACCOUNT_VALIDATION";
|
|
1490
1431
|
ReceptionVoucherStatus["ACCEPTED"] = "ACCEPTED";
|
|
1491
1432
|
ReceptionVoucherStatus["REFUSED"] = "REFUSED";
|
|
1492
1433
|
})(ReceptionVoucherStatus || (ReceptionVoucherStatus = {}));
|
|
1493
|
-
|
|
1494
1434
|
var BillType;
|
|
1495
|
-
|
|
1496
1435
|
(function (BillType) {
|
|
1497
1436
|
BillType["RECEIVED"] = "RECEIVED";
|
|
1498
1437
|
BillType["ISSUED"] = "ISSUED";
|
|
1499
1438
|
})(BillType || (BillType = {}));
|
|
1500
|
-
|
|
1501
1439
|
var BillReceivedEntity;
|
|
1502
|
-
|
|
1503
1440
|
(function (BillReceivedEntity) {
|
|
1504
1441
|
BillReceivedEntity["PRO"] = "PRO";
|
|
1505
1442
|
BillReceivedEntity["MATERIAL_PROVIDER"] = "MATERIAL_PROVIDER";
|
|
@@ -1507,16 +1444,12 @@ var BillReceivedEntity;
|
|
|
1507
1444
|
BillReceivedEntity["PROVIDER"] = "PROVIDER";
|
|
1508
1445
|
BillReceivedEntity["OTHER"] = "OTHER";
|
|
1509
1446
|
})(BillReceivedEntity || (BillReceivedEntity = {}));
|
|
1510
|
-
|
|
1511
1447
|
var BillReceivedType;
|
|
1512
|
-
|
|
1513
1448
|
(function (BillReceivedType) {
|
|
1514
1449
|
BillReceivedType["FACTURE"] = "FACTURE";
|
|
1515
1450
|
BillReceivedType["CREDIT_NOTE"] = "CREDIT_NOTE";
|
|
1516
1451
|
})(BillReceivedType || (BillReceivedType = {}));
|
|
1517
|
-
|
|
1518
1452
|
var BillIssuedEntity;
|
|
1519
|
-
|
|
1520
1453
|
(function (BillIssuedEntity) {
|
|
1521
1454
|
BillIssuedEntity["CLIENT"] = "CLIENT";
|
|
1522
1455
|
BillIssuedEntity["PRO"] = "PRO";
|
|
@@ -1525,18 +1458,14 @@ var BillIssuedEntity;
|
|
|
1525
1458
|
BillIssuedEntity["SERVICE_PROVIDER"] = "SERVICE_PROVIDER";
|
|
1526
1459
|
BillIssuedEntity["OTHER"] = "OTHER";
|
|
1527
1460
|
})(BillIssuedEntity || (BillIssuedEntity = {}));
|
|
1528
|
-
|
|
1529
1461
|
var BillIssuedType;
|
|
1530
|
-
|
|
1531
1462
|
(function (BillIssuedType) {
|
|
1532
1463
|
BillIssuedType["CUSTOM"] = "CUSTOM";
|
|
1533
1464
|
BillIssuedType["DOWN_PAYMENT"] = "DOWN_PAYMENT";
|
|
1534
1465
|
BillIssuedType["BALANCE"] = "BALANCE";
|
|
1535
1466
|
BillIssuedType["CREDIT_NOTE"] = "CREDIT_NOTE";
|
|
1536
1467
|
})(BillIssuedType || (BillIssuedType = {}));
|
|
1537
|
-
|
|
1538
1468
|
var BillElementType;
|
|
1539
|
-
|
|
1540
1469
|
(function (BillElementType) {
|
|
1541
1470
|
BillElementType["ADVANCE"] = "ADVANCE";
|
|
1542
1471
|
BillElementType["HOURS"] = "HOURS";
|
|
@@ -1545,32 +1474,24 @@ var BillElementType;
|
|
|
1545
1474
|
BillElementType["SERVICE"] = "SERVICE";
|
|
1546
1475
|
BillElementType["PROVIDER_COMMISSION"] = "PROVIDER_COMMISSION";
|
|
1547
1476
|
})(BillElementType || (BillElementType = {}));
|
|
1548
|
-
|
|
1549
1477
|
var BillDiscountType;
|
|
1550
|
-
|
|
1551
1478
|
(function (BillDiscountType) {
|
|
1552
1479
|
BillDiscountType["PERCENT"] = "PERCENT";
|
|
1553
1480
|
BillDiscountType["MONEY"] = "MONEY";
|
|
1554
1481
|
})(BillDiscountType || (BillDiscountType = {}));
|
|
1555
|
-
|
|
1556
1482
|
var PaymentType;
|
|
1557
|
-
|
|
1558
1483
|
(function (PaymentType) {
|
|
1559
1484
|
PaymentType["CREDIT"] = "CREDIT";
|
|
1560
1485
|
PaymentType["DEBIT"] = "DEBIT";
|
|
1561
1486
|
})(PaymentType || (PaymentType = {}));
|
|
1562
|
-
|
|
1563
1487
|
var ProjectTypeEnum;
|
|
1564
|
-
|
|
1565
1488
|
(function (ProjectTypeEnum) {
|
|
1566
1489
|
ProjectTypeEnum["ONE_PIECE"] = "ONE_PIECE";
|
|
1567
1490
|
ProjectTypeEnum["FULL"] = "FULL";
|
|
1568
1491
|
ProjectTypeEnum["COMPOUND"] = "COMPOUND";
|
|
1569
1492
|
ProjectTypeEnum["CHILD"] = "CHILD";
|
|
1570
1493
|
})(ProjectTypeEnum || (ProjectTypeEnum = {}));
|
|
1571
|
-
|
|
1572
1494
|
var ProjectCategoriesEnum;
|
|
1573
|
-
|
|
1574
1495
|
(function (ProjectCategoriesEnum) {
|
|
1575
1496
|
ProjectCategoriesEnum["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1576
1497
|
ProjectCategoriesEnum["BATHROOM"] = "BATHROOM";
|
|
@@ -1589,9 +1510,7 @@ var ProjectCategoriesEnum;
|
|
|
1589
1510
|
ProjectCategoriesEnum["OUTSIDE"] = "OUTSIDE";
|
|
1590
1511
|
ProjectCategoriesEnum["COMMERCE"] = "COMMERCE";
|
|
1591
1512
|
})(ProjectCategoriesEnum || (ProjectCategoriesEnum = {}));
|
|
1592
|
-
|
|
1593
1513
|
var ProSpecialitiesEnum;
|
|
1594
|
-
|
|
1595
1514
|
(function (ProSpecialitiesEnum) {
|
|
1596
1515
|
ProSpecialitiesEnum["KITCHEN"] = "kitchen";
|
|
1597
1516
|
ProSpecialitiesEnum["BATHROOM"] = "bathroom";
|
|
@@ -1600,12 +1519,10 @@ var ProSpecialitiesEnum;
|
|
|
1600
1519
|
ProSpecialitiesEnum["ATTICS"] = "attics";
|
|
1601
1520
|
ProSpecialitiesEnum["POOL"] = "swimming_pool";
|
|
1602
1521
|
})(ProSpecialitiesEnum || (ProSpecialitiesEnum = {}));
|
|
1603
|
-
|
|
1604
1522
|
var ProSkillsEnum;
|
|
1605
|
-
|
|
1606
1523
|
(function (ProSkillsEnum) {
|
|
1607
1524
|
ProSkillsEnum["ELECTRICITY"] = "electricity";
|
|
1608
|
-
ProSkillsEnum["
|
|
1525
|
+
ProSkillsEnum["PLUMBING"] = "plumbing";
|
|
1609
1526
|
ProSkillsEnum["CARPENTRY"] = "carpentry";
|
|
1610
1527
|
ProSkillsEnum["MASONRY"] = "masonry";
|
|
1611
1528
|
ProSkillsEnum["PAINTING"] = "painting";
|
|
@@ -1614,9 +1531,7 @@ var ProSkillsEnum;
|
|
|
1614
1531
|
ProSkillsEnum["FRAME"] = "frame";
|
|
1615
1532
|
ProSkillsEnum["INSULATION"] = "insulation";
|
|
1616
1533
|
})(ProSkillsEnum || (ProSkillsEnum = {}));
|
|
1617
|
-
|
|
1618
1534
|
var CommercialStatusEnum;
|
|
1619
|
-
|
|
1620
1535
|
(function (CommercialStatusEnum) {
|
|
1621
1536
|
CommercialStatusEnum["CONTRACTOR"] = "CONTRACTOR";
|
|
1622
1537
|
CommercialStatusEnum["EIRL"] = "EIRL";
|
|
@@ -1625,9 +1540,7 @@ var CommercialStatusEnum;
|
|
|
1625
1540
|
CommercialStatusEnum["SASU"] = "SASU";
|
|
1626
1541
|
CommercialStatusEnum["SAS"] = "SAS";
|
|
1627
1542
|
})(CommercialStatusEnum || (CommercialStatusEnum = {}));
|
|
1628
|
-
|
|
1629
1543
|
var Origin;
|
|
1630
|
-
|
|
1631
1544
|
(function (Origin) {
|
|
1632
1545
|
Origin["PROVIDER"] = "provider";
|
|
1633
1546
|
Origin["INTERNET"] = "internet";
|
|
@@ -1635,9 +1548,7 @@ var Origin;
|
|
|
1635
1548
|
Origin["RUMOR"] = "rumor";
|
|
1636
1549
|
Origin["PUBLICITY"] = "publicity";
|
|
1637
1550
|
})(Origin || (Origin = {}));
|
|
1638
|
-
|
|
1639
1551
|
var OrderMaterialStatus;
|
|
1640
|
-
|
|
1641
1552
|
(function (OrderMaterialStatus) {
|
|
1642
1553
|
OrderMaterialStatus["TODO"] = "TODO";
|
|
1643
1554
|
OrderMaterialStatus["VALID"] = "VALID";
|
|
@@ -1646,27 +1557,21 @@ var OrderMaterialStatus;
|
|
|
1646
1557
|
OrderMaterialStatus["RECEIVED"] = "RECEIVED";
|
|
1647
1558
|
OrderMaterialStatus["ONSITE"] = "ONSITE";
|
|
1648
1559
|
})(OrderMaterialStatus || (OrderMaterialStatus = {}));
|
|
1649
|
-
|
|
1650
1560
|
var PhonesEnum;
|
|
1651
|
-
|
|
1652
1561
|
(function (PhonesEnum) {
|
|
1653
1562
|
PhonesEnum["MOBILE"] = "mobile";
|
|
1654
1563
|
PhonesEnum["WORK"] = "work";
|
|
1655
1564
|
PhonesEnum["LANDLINE"] = "landline";
|
|
1656
1565
|
PhonesEnum["OTHER"] = "other";
|
|
1657
1566
|
})(PhonesEnum || (PhonesEnum = {}));
|
|
1658
|
-
|
|
1659
1567
|
var SendgridTemplates;
|
|
1660
|
-
|
|
1661
1568
|
(function (SendgridTemplates) {
|
|
1662
1569
|
SendgridTemplates["NOTES"] = "notes";
|
|
1663
1570
|
SendgridTemplates["EVENTS"] = "events";
|
|
1664
1571
|
SendgridTemplates["DOCUMENTS"] = "documents";
|
|
1665
1572
|
SendgridTemplates["DEVIS"] = "devis";
|
|
1666
1573
|
})(SendgridTemplates || (SendgridTemplates = {}));
|
|
1667
|
-
|
|
1668
1574
|
var TermsOfPayment;
|
|
1669
|
-
|
|
1670
1575
|
(function (TermsOfPayment) {
|
|
1671
1576
|
TermsOfPayment["UPON_RECEIPT"] = "upon-receipt";
|
|
1672
1577
|
TermsOfPayment["MONTH_END"] = "month-end";
|
|
@@ -1681,9 +1586,7 @@ var TermsOfPayment;
|
|
|
1681
1586
|
TermsOfPayment["DAYS_90_END_MONTH"] = "90-days-end-month";
|
|
1682
1587
|
TermsOfPayment["DAYS_120"] = "120-days";
|
|
1683
1588
|
})(TermsOfPayment || (TermsOfPayment = {}));
|
|
1684
|
-
|
|
1685
1589
|
var PaymentChoice;
|
|
1686
|
-
|
|
1687
1590
|
(function (PaymentChoice) {
|
|
1688
1591
|
PaymentChoice["UNSPECIFIED"] = "unspecified";
|
|
1689
1592
|
PaymentChoice["CASH"] = "cash";
|
|
@@ -1697,9 +1600,7 @@ var PaymentChoice;
|
|
|
1697
1600
|
PaymentChoice["BILL_EXCHANGE_WITHOUT_ACCEPTANCE"] = "bill-exchange-without-acceptance";
|
|
1698
1601
|
PaymentChoice["PROMISSORY_NOTE"] = "promissory-note";
|
|
1699
1602
|
})(PaymentChoice || (PaymentChoice = {}));
|
|
1700
|
-
|
|
1701
1603
|
var LateInterest;
|
|
1702
|
-
|
|
1703
1604
|
(function (LateInterest) {
|
|
1704
1605
|
LateInterest["NO_LATE_INTEREST"] = "No-late-interest";
|
|
1705
1606
|
LateInterest["PER_MONTH_1"] = "1%-per-month";
|
|
@@ -1708,25 +1609,19 @@ var LateInterest;
|
|
|
1708
1609
|
LateInterest["CURRENT_LEGAL_INTEREST_RATE"] = "current-legal-interest-rate";
|
|
1709
1610
|
LateInterest["SPECIFY"] = "specify";
|
|
1710
1611
|
})(LateInterest || (LateInterest = {}));
|
|
1711
|
-
|
|
1712
1612
|
var ProfileStatus;
|
|
1713
|
-
|
|
1714
1613
|
(function (ProfileStatus) {
|
|
1715
1614
|
ProfileStatus["ACTIVE"] = "active";
|
|
1716
1615
|
ProfileStatus["INACTIVE"] = "inactive";
|
|
1717
1616
|
ProfileStatus["BLOCKED"] = "blocked";
|
|
1718
1617
|
ProfileStatus["SUSPENDED"] = "suspended";
|
|
1719
1618
|
})(ProfileStatus || (ProfileStatus = {}));
|
|
1720
|
-
|
|
1721
1619
|
var EstimationOriginEnum;
|
|
1722
|
-
|
|
1723
1620
|
(function (EstimationOriginEnum) {
|
|
1724
1621
|
EstimationOriginEnum["WEBSITE"] = "WEBSITE";
|
|
1725
1622
|
EstimationOriginEnum["ARTICHO"] = "ARTICHO";
|
|
1726
1623
|
})(EstimationOriginEnum || (EstimationOriginEnum = {}));
|
|
1727
|
-
|
|
1728
1624
|
var EstimationTypeEnum;
|
|
1729
|
-
|
|
1730
1625
|
(function (EstimationTypeEnum) {
|
|
1731
1626
|
EstimationTypeEnum["KITCHEN"] = "KITCHEN";
|
|
1732
1627
|
EstimationTypeEnum["BATHROOM"] = "BATHROOM";
|
|
@@ -1736,9 +1631,7 @@ var EstimationTypeEnum;
|
|
|
1736
1631
|
EstimationTypeEnum["COMMERCIAL_LOCAL"] = "COMMERCIAL_LOCAL";
|
|
1737
1632
|
EstimationTypeEnum["WITHOUT_ESTIMATION"] = "WITHOUT_ESTIMATION";
|
|
1738
1633
|
})(EstimationTypeEnum || (EstimationTypeEnum = {}));
|
|
1739
|
-
|
|
1740
1634
|
var EmailTemplate;
|
|
1741
|
-
|
|
1742
1635
|
(function (EmailTemplate) {
|
|
1743
1636
|
EmailTemplate["USER_INVITATION"] = "user-invitation";
|
|
1744
1637
|
EmailTemplate["DOCUMENTS"] = "documents";
|
|
@@ -1759,24 +1652,18 @@ var EmailTemplate;
|
|
|
1759
1652
|
EmailTemplate["EXPORT_LOGS"] = "export-logs";
|
|
1760
1653
|
EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
|
|
1761
1654
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
1762
|
-
|
|
1763
1655
|
var DevisPdfType;
|
|
1764
|
-
|
|
1765
1656
|
(function (DevisPdfType) {
|
|
1766
1657
|
DevisPdfType["PROVIDER"] = "provider";
|
|
1767
1658
|
DevisPdfType["PROFESSIONAL"] = "professional";
|
|
1768
1659
|
DevisPdfType["ENTERPRISE"] = "enterprise";
|
|
1769
1660
|
})(DevisPdfType || (DevisPdfType = {}));
|
|
1770
|
-
|
|
1771
1661
|
var DevisContractingEntity;
|
|
1772
|
-
|
|
1773
1662
|
(function (DevisContractingEntity) {
|
|
1774
1663
|
DevisContractingEntity["PROVIDER"] = "provider";
|
|
1775
1664
|
DevisContractingEntity["ENTERPRISE"] = "enterprise";
|
|
1776
1665
|
})(DevisContractingEntity || (DevisContractingEntity = {}));
|
|
1777
|
-
|
|
1778
1666
|
var EnterpriseStatusEnum;
|
|
1779
|
-
|
|
1780
1667
|
(function (EnterpriseStatusEnum) {
|
|
1781
1668
|
EnterpriseStatusEnum["INCOMPLETE"] = "incomplete";
|
|
1782
1669
|
EnterpriseStatusEnum["INCOMPLETE_EXPIRED"] = "incomplete_expired";
|
|
@@ -1786,25 +1673,19 @@ var EnterpriseStatusEnum;
|
|
|
1786
1673
|
EnterpriseStatusEnum["CANCELED"] = "canceled";
|
|
1787
1674
|
EnterpriseStatusEnum["UNPAID"] = "unpaid";
|
|
1788
1675
|
})(EnterpriseStatusEnum || (EnterpriseStatusEnum = {}));
|
|
1789
|
-
|
|
1790
1676
|
var EnterpriseProductEnum;
|
|
1791
|
-
|
|
1792
1677
|
(function (EnterpriseProductEnum) {
|
|
1793
1678
|
EnterpriseProductEnum["STANDARD"] = "standard";
|
|
1794
1679
|
EnterpriseProductEnum["PLUS"] = "plus";
|
|
1795
1680
|
EnterpriseProductEnum["PREMIUM"] = "premium";
|
|
1796
1681
|
})(EnterpriseProductEnum || (EnterpriseProductEnum = {}));
|
|
1797
|
-
|
|
1798
1682
|
var EstimationStatusEnum;
|
|
1799
|
-
|
|
1800
1683
|
(function (EstimationStatusEnum) {
|
|
1801
1684
|
EstimationStatusEnum["WAITING"] = "WAITING";
|
|
1802
1685
|
EstimationStatusEnum["APPROVED"] = "APPROVED";
|
|
1803
1686
|
EstimationStatusEnum["REFUSED"] = "REFUSED";
|
|
1804
1687
|
})(EstimationStatusEnum || (EstimationStatusEnum = {}));
|
|
1805
|
-
|
|
1806
1688
|
var HistoryActionEnum;
|
|
1807
|
-
|
|
1808
1689
|
(function (HistoryActionEnum) {
|
|
1809
1690
|
HistoryActionEnum["EDIT"] = "EDIT";
|
|
1810
1691
|
HistoryActionEnum["SEND_EMAIL"] = "SEND_EMAIL";
|
|
@@ -1827,9 +1708,7 @@ var HistoryActionEnum;
|
|
|
1827
1708
|
HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
|
|
1828
1709
|
HistoryActionEnum["EDIT_USER_STATUS"] = "EDIT_USER_STATUS";
|
|
1829
1710
|
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
1830
|
-
|
|
1831
1711
|
var HistoryEntityType;
|
|
1832
|
-
|
|
1833
1712
|
(function (HistoryEntityType) {
|
|
1834
1713
|
HistoryEntityType["PROJECT"] = "PROJECT";
|
|
1835
1714
|
HistoryEntityType["NOTE"] = "NOTE";
|
|
@@ -1841,9 +1720,7 @@ var HistoryEntityType;
|
|
|
1841
1720
|
HistoryEntityType["DEVIS"] = "DEVIS";
|
|
1842
1721
|
HistoryEntityType["PROFILE"] = "PROFILE";
|
|
1843
1722
|
})(HistoryEntityType || (HistoryEntityType = {}));
|
|
1844
|
-
|
|
1845
1723
|
var CategoryEntityEnum;
|
|
1846
|
-
|
|
1847
1724
|
(function (CategoryEntityEnum) {
|
|
1848
1725
|
CategoryEntityEnum["MATERIAL"] = "MATERIAL";
|
|
1849
1726
|
CategoryEntityEnum["OPERATION"] = "OPERATION";
|
|
@@ -1851,17 +1728,13 @@ var CategoryEntityEnum;
|
|
|
1851
1728
|
CategoryEntityEnum["IMAGE_LIBRARY"] = "IMAGE_LIBRARY";
|
|
1852
1729
|
CategoryEntityEnum["DEVIS_TEMPLATE"] = "DEVIS_TEMPLATE";
|
|
1853
1730
|
})(CategoryEntityEnum || (CategoryEntityEnum = {}));
|
|
1854
|
-
|
|
1855
1731
|
var DevisTemplateCatProvider;
|
|
1856
|
-
|
|
1857
1732
|
(function (DevisTemplateCatProvider) {
|
|
1858
1733
|
DevisTemplateCatProvider["BASIC"] = "BASIC";
|
|
1859
1734
|
DevisTemplateCatProvider["ADVANCED_PIECE"] = "ADVANCED_PIECE";
|
|
1860
1735
|
DevisTemplateCatProvider["ADVANCED_LOT"] = "ADVANCED_LOT";
|
|
1861
1736
|
})(DevisTemplateCatProvider || (DevisTemplateCatProvider = {}));
|
|
1862
|
-
|
|
1863
1737
|
var NomenclaturesIdentifier;
|
|
1864
|
-
|
|
1865
1738
|
(function (NomenclaturesIdentifier) {
|
|
1866
1739
|
NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
|
|
1867
1740
|
NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
|
|
@@ -1878,9 +1751,7 @@ var NomenclaturesIdentifier;
|
|
|
1878
1751
|
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1879
1752
|
NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
|
|
1880
1753
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1881
|
-
|
|
1882
1754
|
var BarCodeEnum;
|
|
1883
|
-
|
|
1884
1755
|
(function (BarCodeEnum) {
|
|
1885
1756
|
BarCodeEnum["CODE128"] = "code128";
|
|
1886
1757
|
BarCodeEnum["EAN13"] = "ean13";
|
|
@@ -1893,27 +1764,21 @@ var BarCodeEnum;
|
|
|
1893
1764
|
BarCodeEnum["MSI"] = "msi";
|
|
1894
1765
|
BarCodeEnum["PHARMACODE"] = "pharmacode";
|
|
1895
1766
|
})(BarCodeEnum || (BarCodeEnum = {}));
|
|
1896
|
-
|
|
1897
1767
|
var OperationQuantityEnum;
|
|
1898
|
-
|
|
1899
1768
|
(function (OperationQuantityEnum) {
|
|
1900
1769
|
OperationQuantityEnum["NOT_DEFINED"] = "NOT_DEFINED";
|
|
1901
1770
|
OperationQuantityEnum["PERIMETER"] = "PERIMETER";
|
|
1902
1771
|
OperationQuantityEnum["GROUND_CEILING_SURFACE"] = "GROUND_CEILING_SURFACE";
|
|
1903
1772
|
OperationQuantityEnum["WALL_SURFACE"] = "WALL_SURFACE";
|
|
1904
1773
|
})(OperationQuantityEnum || (OperationQuantityEnum = {}));
|
|
1905
|
-
|
|
1906
1774
|
var OperationRulesEnum;
|
|
1907
|
-
|
|
1908
1775
|
(function (OperationRulesEnum) {
|
|
1909
1776
|
OperationRulesEnum["BIGGER_THAN"] = "BIGGER_THAN";
|
|
1910
1777
|
OperationRulesEnum["LOWER_THAN"] = "LOWER_THAN";
|
|
1911
1778
|
OperationRulesEnum["EQUAL_TO"] = "EQUAL_TO";
|
|
1912
1779
|
OperationRulesEnum["BETWEEN"] = "BETWEEN";
|
|
1913
1780
|
})(OperationRulesEnum || (OperationRulesEnum = {}));
|
|
1914
|
-
|
|
1915
1781
|
var ItemResponsible;
|
|
1916
|
-
|
|
1917
1782
|
(function (ItemResponsible) {
|
|
1918
1783
|
ItemResponsible["NONE"] = "NONE";
|
|
1919
1784
|
ItemResponsible["CLIENT"] = "CLIENT";
|
|
@@ -1923,33 +1788,25 @@ var ItemResponsible;
|
|
|
1923
1788
|
ItemResponsible["ENTERPRISE"] = "ENTERPRISE";
|
|
1924
1789
|
ItemResponsible["PROVIDER"] = "PROVIDER";
|
|
1925
1790
|
})(ItemResponsible || (ItemResponsible = {}));
|
|
1926
|
-
|
|
1927
1791
|
var ProjectPriceTypeEnum;
|
|
1928
|
-
|
|
1929
1792
|
(function (ProjectPriceTypeEnum) {
|
|
1930
1793
|
ProjectPriceTypeEnum["accepted"] = "accepted";
|
|
1931
1794
|
ProjectPriceTypeEnum["prospected"] = "prospected";
|
|
1932
1795
|
ProjectPriceTypeEnum["rejected"] = "rejected";
|
|
1933
1796
|
})(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
|
|
1934
|
-
|
|
1935
1797
|
var DevisFormatEnum;
|
|
1936
|
-
|
|
1937
1798
|
(function (DevisFormatEnum) {
|
|
1938
1799
|
DevisFormatEnum["PIECE"] = "PIECE";
|
|
1939
1800
|
DevisFormatEnum["LOT"] = "LOT";
|
|
1940
1801
|
})(DevisFormatEnum || (DevisFormatEnum = {}));
|
|
1941
|
-
|
|
1942
1802
|
var ConfigurationsIdentifier;
|
|
1943
|
-
|
|
1944
1803
|
(function (ConfigurationsIdentifier) {
|
|
1945
1804
|
ConfigurationsIdentifier["ADMIN_FORM"] = "ADMIN_FORM";
|
|
1946
1805
|
ConfigurationsIdentifier["PROS_FORM"] = "PROS_FORM";
|
|
1947
1806
|
ConfigurationsIdentifier["AGENTS_FORM"] = "AGENTS_FORM";
|
|
1948
1807
|
ConfigurationsIdentifier["SELLERS_FORM"] = "SELLERS_FORM";
|
|
1949
1808
|
})(ConfigurationsIdentifier || (ConfigurationsIdentifier = {}));
|
|
1950
|
-
|
|
1951
1809
|
var ConfigurationFieldType;
|
|
1952
|
-
|
|
1953
1810
|
(function (ConfigurationFieldType) {
|
|
1954
1811
|
ConfigurationFieldType["TEXT"] = "users.admins.configPanel.inputType.text";
|
|
1955
1812
|
ConfigurationFieldType["PASSWORD"] = "users.admins.configPanel.inputType.password";
|
|
@@ -1960,24 +1817,18 @@ var ConfigurationFieldType;
|
|
|
1960
1817
|
ConfigurationFieldType["SELECT_MULTI"] = "users.admins.configPanel.inputType.selectMulti";
|
|
1961
1818
|
ConfigurationFieldType["GOOGLE_LOCATION"] = "users.admins.configPanel.inputType.googleLocation";
|
|
1962
1819
|
})(ConfigurationFieldType || (ConfigurationFieldType = {}));
|
|
1963
|
-
|
|
1964
1820
|
var LogsIdentifier;
|
|
1965
|
-
|
|
1966
1821
|
(function (LogsIdentifier) {
|
|
1967
1822
|
LogsIdentifier["EXPORT_DATA"] = "EXPORT_DATA";
|
|
1968
1823
|
})(LogsIdentifier || (LogsIdentifier = {}));
|
|
1969
|
-
|
|
1970
1824
|
var QueryIdentifier;
|
|
1971
|
-
|
|
1972
1825
|
(function (QueryIdentifier) {
|
|
1973
1826
|
QueryIdentifier["EXPORT_EVENTS"] = "EXPORT_EVENTS";
|
|
1974
1827
|
QueryIdentifier["EXPORT_BILLS"] = "EXPORT_BILLS";
|
|
1975
1828
|
QueryIdentifier["EXPORT_DEVIS"] = "EXPORT_DEVIS";
|
|
1976
1829
|
QueryIdentifier["EXPORT_PROJECTS"] = "EXPORT_PROJECTS";
|
|
1977
1830
|
})(QueryIdentifier || (QueryIdentifier = {}));
|
|
1978
|
-
|
|
1979
1831
|
var BillIssuedReasons;
|
|
1980
|
-
|
|
1981
1832
|
(function (BillIssuedReasons) {
|
|
1982
1833
|
BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
|
|
1983
1834
|
BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
|
|
@@ -2058,18 +1909,15 @@ var types = {
|
|
|
2058
1909
|
function isBuffer(obj) {
|
|
2059
1910
|
return obj && obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
|
|
2060
1911
|
}
|
|
2061
|
-
|
|
2062
1912
|
function keyIdentity(key) {
|
|
2063
1913
|
return key;
|
|
2064
1914
|
}
|
|
2065
|
-
|
|
2066
1915
|
function flatten(target, options) {
|
|
2067
1916
|
var opts = options || {};
|
|
2068
1917
|
var delimiter = opts.delimiter || '.';
|
|
2069
1918
|
var maxDepth = opts.maxDepth;
|
|
2070
1919
|
var transformKey = opts.transformKey || keyIdentity;
|
|
2071
1920
|
var output = {};
|
|
2072
|
-
|
|
2073
1921
|
function step(object, prev, currentDepth) {
|
|
2074
1922
|
var depth = currentDepth || 1;
|
|
2075
1923
|
Object.keys(object).forEach(function (key) {
|
|
@@ -2079,15 +1927,12 @@ function flatten(target, options) {
|
|
|
2079
1927
|
var isbuffer = isBuffer(value);
|
|
2080
1928
|
var isobject = type === '[object Object]' || type === '[object Array]';
|
|
2081
1929
|
var newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
|
|
2082
|
-
|
|
2083
1930
|
if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!maxDepth || depth < maxDepth)) {
|
|
2084
1931
|
step(value, newKey, depth + 1);
|
|
2085
1932
|
}
|
|
2086
|
-
|
|
2087
1933
|
output[newKey] = value;
|
|
2088
1934
|
});
|
|
2089
1935
|
}
|
|
2090
|
-
|
|
2091
1936
|
step(target, null, 0);
|
|
2092
1937
|
return output;
|
|
2093
1938
|
}
|