@placeshakr/config 10.19.0-alpha.5 → 10.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.cjs.development.js +232 -73
- 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 +232 -73
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/decorators.d.ts.map +1 -1
- package/dist/environment/types.d.ts +3 -0
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +3 -2
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/plans/base.d.ts.map +1 -1
- package/dist/plans/index.d.ts.map +1 -1
- package/dist/plans/types.d.ts +179 -3
- package/dist/plans/types.d.ts.map +1 -1
- package/dist/types.d.ts +57 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -12
- package/src/environment/base.ts +19 -6
- package/src/environment/decorators.ts +3 -1
- package/src/environment/types.ts +4 -1
- package/src/helpers/index.ts +2 -0
- package/src/helpers/uid.ts +1 -1
- package/src/plans/base.ts +65 -38
- package/src/plans/index.ts +46 -20
- package/src/plans/types.ts +91 -3
- package/src/types.ts +127 -67
- package/CHANGELOG.md +0 -1949
package/dist/config.esm.js
CHANGED
|
@@ -156,7 +156,8 @@ var productionEnvironment = {
|
|
|
156
156
|
histories: 'enterprises/{enterpriseId}/histories',
|
|
157
157
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
|
|
158
158
|
indexes: 'enterprises/{enterpriseId}/indexes',
|
|
159
|
-
notifications: 'enterprises/{enterpriseId}/notifications'
|
|
159
|
+
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
160
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
|
|
160
161
|
},
|
|
161
162
|
docs: {
|
|
162
163
|
user: 'users/{userId}',
|
|
@@ -197,7 +198,8 @@ var productionEnvironment = {
|
|
|
197
198
|
userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
|
|
198
199
|
history: 'enterprises/{enterpriseId}/histories/{historyId}',
|
|
199
200
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
|
|
200
|
-
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}'
|
|
201
|
+
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
202
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
|
|
201
203
|
},
|
|
202
204
|
indexes: {
|
|
203
205
|
users: 'users',
|
|
@@ -242,6 +244,7 @@ var productionEnvironment = {
|
|
|
242
244
|
systemOperationsMaterials: 'system-operations-materials',
|
|
243
245
|
systemMaterialsProvider: 'system-materials-provider',
|
|
244
246
|
systemStatus: 'system-status',
|
|
247
|
+
systemNomenclatures: 'system-nomenclatures',
|
|
245
248
|
systemCategories: 'system-categories'
|
|
246
249
|
}
|
|
247
250
|
},
|
|
@@ -463,6 +466,13 @@ var productionEnvironment = {
|
|
|
463
466
|
maxValuesPerFacet: 1000,
|
|
464
467
|
maxFacetHits: 100
|
|
465
468
|
},
|
|
469
|
+
systemNomenclatures: {
|
|
470
|
+
searchableAttributes: ['identifier', 'value'],
|
|
471
|
+
attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
|
|
472
|
+
ranking: ['desc(updatedAt)'],
|
|
473
|
+
maxValuesPerFacet: 1000,
|
|
474
|
+
maxFacetHits: 100
|
|
475
|
+
},
|
|
466
476
|
billing: {
|
|
467
477
|
attributesForFaceting: ['searchable(scope)', 'customer', 'paid', 'searchable(status)'],
|
|
468
478
|
maxValuesPerFacet: 1000,
|
|
@@ -510,9 +520,9 @@ var productionEnvironment = {
|
|
|
510
520
|
maxFacetHits: 100
|
|
511
521
|
},
|
|
512
522
|
nomenclatures: {
|
|
513
|
-
searchableAttributes: ['
|
|
523
|
+
searchableAttributes: ['value'],
|
|
514
524
|
attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
|
|
515
|
-
ranking: ['asc(
|
|
525
|
+
ranking: ['asc(value)'],
|
|
516
526
|
maxValuesPerFacet: 1000,
|
|
517
527
|
maxFacetHits: 100
|
|
518
528
|
}
|
|
@@ -597,6 +607,7 @@ var test = function test(base) {
|
|
|
597
607
|
systemOperationsMaterials: 'system-operations-materials',
|
|
598
608
|
systemMaterialsProvider: 'system-materials-provider',
|
|
599
609
|
systemStatus: 'test-system-status',
|
|
610
|
+
systemNomenclatures: 'test-system-nomenclatures',
|
|
600
611
|
systemCategories: 'system-categories'
|
|
601
612
|
}
|
|
602
613
|
}),
|
|
@@ -651,6 +662,7 @@ var emulator = function emulator(base) {
|
|
|
651
662
|
systemOperationsMaterials: 'system-operations-materials',
|
|
652
663
|
systemMaterialsProvider: 'system-materials-provider',
|
|
653
664
|
systemStatus: 'emulator-system-status',
|
|
665
|
+
systemNomenclatures: 'emulator-system-nomenclatures',
|
|
654
666
|
systemCategories: 'system-categories'
|
|
655
667
|
}
|
|
656
668
|
}),
|
|
@@ -703,9 +715,9 @@ var getEnv = function getEnv(envName) {
|
|
|
703
715
|
var FactoryCreateFunction = function FactoryCreateFunction() {
|
|
704
716
|
return {
|
|
705
717
|
create: function create(id, data) {
|
|
706
|
-
return _extends({},
|
|
718
|
+
return _extends({}, data != null && data.createdAt || data != null && data.updatedAt ? {} : {
|
|
707
719
|
createdAt: Date.now()
|
|
708
|
-
},
|
|
720
|
+
}, data != null && data.updatedAt ? {} : {
|
|
709
721
|
updatedAt: Date.now()
|
|
710
722
|
}, {
|
|
711
723
|
objectID: id,
|
|
@@ -743,7 +755,8 @@ var helpers = {
|
|
|
743
755
|
invitations: /*#__PURE__*/FactoryCreateFunction(),
|
|
744
756
|
downPayment: /*#__PURE__*/FactoryCreateFunction(),
|
|
745
757
|
histories: /*#__PURE__*/FactoryCreateFunction(),
|
|
746
|
-
receptionVoucher: /*#__PURE__*/FactoryCreateFunction()
|
|
758
|
+
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
759
|
+
nomenclatures: /*#__PURE__*/FactoryCreateFunction()
|
|
747
760
|
};
|
|
748
761
|
|
|
749
762
|
/**
|
|
@@ -800,13 +813,13 @@ var uid = {
|
|
|
800
813
|
// last push, use the same random number,
|
|
801
814
|
// except incremented by 1.
|
|
802
815
|
else {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
lastRandChars[i]++;
|
|
816
|
+
for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
|
|
817
|
+
lastRandChars[i] = 0;
|
|
808
818
|
}
|
|
809
819
|
|
|
820
|
+
lastRandChars[i]++;
|
|
821
|
+
}
|
|
822
|
+
|
|
810
823
|
for (i = 0; i < 12; i++) {
|
|
811
824
|
id += ASCII_CHARS.charAt(lastRandChars[i]);
|
|
812
825
|
}
|
|
@@ -823,7 +836,7 @@ var uid = {
|
|
|
823
836
|
timestamp: /*#__PURE__*/function () {
|
|
824
837
|
return function (id, asDate) {
|
|
825
838
|
var time = 0;
|
|
826
|
-
var data = id.
|
|
839
|
+
var data = id.substring(0, 8);
|
|
827
840
|
|
|
828
841
|
for (var i = 0; i < 8; i++) {
|
|
829
842
|
time = time * 62 + ASCII_CHARS.indexOf(data[i]);
|
|
@@ -895,23 +908,37 @@ var createProducts = function createProducts(params) {
|
|
|
895
908
|
id: params.standard.id,
|
|
896
909
|
internal: 'standard',
|
|
897
910
|
product: {
|
|
898
|
-
|
|
899
|
-
active: true,
|
|
900
|
-
description: 'Pour les entreprises unipersonnelles',
|
|
901
|
-
id: params.plus.id,
|
|
911
|
+
id: params.standard.id,
|
|
902
912
|
name: 'Standard',
|
|
913
|
+
description: 'Pour les entreprises unipersonnelles',
|
|
903
914
|
type: 'service',
|
|
915
|
+
price: 69,
|
|
904
916
|
main: true,
|
|
917
|
+
active: true,
|
|
918
|
+
isPrivate: true,
|
|
905
919
|
rating: 1,
|
|
906
920
|
order: 1,
|
|
907
921
|
includes: {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
922
|
+
maxAdminUsers: null,
|
|
923
|
+
maxAgentUsers: null,
|
|
924
|
+
maxProUsers: null,
|
|
925
|
+
maxSellerUsers: null,
|
|
926
|
+
authorizationManagement: true,
|
|
927
|
+
dashboard: true,
|
|
928
|
+
accounting: true,
|
|
929
|
+
projectStorage: true,
|
|
930
|
+
customCatalog: true,
|
|
931
|
+
customConfig: true,
|
|
932
|
+
exportReports: true,
|
|
933
|
+
externalApiIntegration: true,
|
|
934
|
+
support: true
|
|
911
935
|
},
|
|
912
|
-
plans:
|
|
936
|
+
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
937
|
+
return t.id;
|
|
938
|
+
}),
|
|
913
939
|
tax_rates: params.standard.tax_rates
|
|
914
940
|
},
|
|
941
|
+
tariffs: params.standard.tariffs,
|
|
915
942
|
additionalUser: params.standard.prices.additionalUser,
|
|
916
943
|
additionalUserPrice: params.standard.additionalUserPrice
|
|
917
944
|
},
|
|
@@ -919,54 +946,76 @@ var createProducts = function createProducts(params) {
|
|
|
919
946
|
id: params.plus.id,
|
|
920
947
|
internal: 'plus',
|
|
921
948
|
product: {
|
|
922
|
-
active: true,
|
|
923
|
-
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
924
949
|
id: params.plus.id,
|
|
925
950
|
name: 'Plus',
|
|
951
|
+
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
926
952
|
type: 'service',
|
|
927
|
-
|
|
953
|
+
price: 159,
|
|
928
954
|
main: true,
|
|
929
|
-
|
|
930
|
-
|
|
955
|
+
active: true,
|
|
956
|
+
isPrivate: true,
|
|
957
|
+
rating: 2,
|
|
958
|
+
order: 2,
|
|
931
959
|
includes: {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
960
|
+
maxAdminUsers: null,
|
|
961
|
+
maxAgentUsers: null,
|
|
962
|
+
maxProUsers: null,
|
|
963
|
+
maxSellerUsers: null,
|
|
964
|
+
authorizationManagement: true,
|
|
965
|
+
dashboard: true,
|
|
966
|
+
accounting: true,
|
|
967
|
+
projectStorage: true,
|
|
968
|
+
customCatalog: true,
|
|
969
|
+
customConfig: true,
|
|
970
|
+
exportReports: true,
|
|
971
|
+
externalApiIntegration: true,
|
|
972
|
+
support: true
|
|
936
973
|
},
|
|
937
|
-
|
|
938
|
-
|
|
974
|
+
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
975
|
+
return t.id;
|
|
976
|
+
}),
|
|
977
|
+
tax_rates: params.plus.tax_rates
|
|
939
978
|
},
|
|
979
|
+
tariffs: params.plus.tariffs,
|
|
940
980
|
additionalUser: params.plus.prices.additionalUser,
|
|
941
981
|
additionalUserPrice: params.plus.additionalUserPrice
|
|
942
982
|
},
|
|
943
|
-
|
|
944
|
-
id: params.
|
|
945
|
-
internal: '
|
|
983
|
+
classic: {
|
|
984
|
+
id: params.classic.id,
|
|
985
|
+
internal: 'classic',
|
|
946
986
|
product: {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
name: 'Premium',
|
|
987
|
+
id: params.classic.id,
|
|
988
|
+
name: 'Abonnement Articho',
|
|
989
|
+
description: '',
|
|
951
990
|
type: 'service',
|
|
952
|
-
|
|
991
|
+
price: 159,
|
|
953
992
|
main: true,
|
|
993
|
+
active: true,
|
|
954
994
|
rating: 3,
|
|
955
|
-
|
|
956
|
-
price: 29900,
|
|
957
|
-
order: 2,
|
|
995
|
+
order: 3,
|
|
958
996
|
includes: {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
997
|
+
maxAdminUsers: 1,
|
|
998
|
+
maxAgentUsers: 0,
|
|
999
|
+
maxProUsers: 0,
|
|
1000
|
+
maxSellerUsers: 0,
|
|
1001
|
+
authorizationManagement: true,
|
|
1002
|
+
dashboard: true,
|
|
963
1003
|
accounting: true,
|
|
964
|
-
|
|
1004
|
+
projectStorage: true,
|
|
1005
|
+
customCatalog: true,
|
|
1006
|
+
customConfig: true,
|
|
1007
|
+
exportReports: true,
|
|
1008
|
+
externalApiIntegration: true,
|
|
1009
|
+
support: true
|
|
965
1010
|
},
|
|
966
|
-
plans:
|
|
1011
|
+
plans: Object.values(params.classic.tariffs).map(function (t) {
|
|
1012
|
+
return t.id;
|
|
1013
|
+
}),
|
|
1014
|
+
tax_rates: params.classic.tax_rates
|
|
967
1015
|
},
|
|
968
|
-
|
|
969
|
-
|
|
1016
|
+
tariffs: params.classic.tariffs,
|
|
1017
|
+
additionalUser: params.classic.prices.additionalUser,
|
|
1018
|
+
additionalUserPrice: params.classic.additionalUserPrice
|
|
970
1019
|
}
|
|
971
1020
|
};
|
|
972
1021
|
return products;
|
|
@@ -974,60 +1023,156 @@ var createProducts = function createProducts(params) {
|
|
|
974
1023
|
|
|
975
1024
|
var testing = {
|
|
976
1025
|
standard: {
|
|
977
|
-
id: '
|
|
1026
|
+
id: 'prod_KzmEyS3UQ5lbnz',
|
|
978
1027
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1028
|
+
tariffs: {
|
|
1029
|
+
base: {
|
|
1030
|
+
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1031
|
+
price: 69,
|
|
1032
|
+
usageType: 'licensed',
|
|
1033
|
+
type: 'base'
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
979
1036
|
prices: {
|
|
980
|
-
monthly: '
|
|
981
|
-
additionalUser: '
|
|
1037
|
+
monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1038
|
+
additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe'
|
|
982
1039
|
},
|
|
983
|
-
additionalUserPrice:
|
|
1040
|
+
additionalUserPrice: 10
|
|
984
1041
|
},
|
|
985
1042
|
plus: {
|
|
986
|
-
id: '
|
|
1043
|
+
id: 'prod_KzmyY1ysEOeK93',
|
|
987
1044
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1045
|
+
tariffs: {
|
|
1046
|
+
base: {
|
|
1047
|
+
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1048
|
+
price: 159,
|
|
1049
|
+
usageType: 'licensed',
|
|
1050
|
+
type: 'base'
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
988
1053
|
prices: {
|
|
989
|
-
monthly: '
|
|
990
|
-
additionalUser: '
|
|
1054
|
+
monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1055
|
+
additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX'
|
|
991
1056
|
},
|
|
992
|
-
additionalUserPrice:
|
|
1057
|
+
additionalUserPrice: 5
|
|
993
1058
|
},
|
|
994
|
-
|
|
995
|
-
id: '
|
|
1059
|
+
classic: {
|
|
1060
|
+
id: 'prod_KzmO4rORyWl8cA',
|
|
996
1061
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1062
|
+
tariffs: {
|
|
1063
|
+
base: {
|
|
1064
|
+
id: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1065
|
+
price: 159,
|
|
1066
|
+
usageType: 'licensed',
|
|
1067
|
+
type: 'base'
|
|
1068
|
+
},
|
|
1069
|
+
additionalAdmin: {
|
|
1070
|
+
id: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
|
|
1071
|
+
price: 30,
|
|
1072
|
+
usageType: 'metered',
|
|
1073
|
+
type: 'extra_user'
|
|
1074
|
+
},
|
|
1075
|
+
additionalAgent: {
|
|
1076
|
+
id: 'price_1KJmpiLFzcsAA7x6gFBgAXkr',
|
|
1077
|
+
price: 20,
|
|
1078
|
+
usageType: 'metered',
|
|
1079
|
+
type: 'extra_user'
|
|
1080
|
+
},
|
|
1081
|
+
additionalPro: {
|
|
1082
|
+
id: 'price_1KJmpiLFzcsAA7x6JxTnlLC8',
|
|
1083
|
+
price: 10,
|
|
1084
|
+
usageType: 'metered',
|
|
1085
|
+
type: 'extra_user'
|
|
1086
|
+
},
|
|
1087
|
+
additionalSeller: {
|
|
1088
|
+
id: 'price_1KJmpiLFzcsAA7x6XS9PBgQo',
|
|
1089
|
+
price: 2,
|
|
1090
|
+
usageType: 'metered',
|
|
1091
|
+
type: 'extra_user'
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
997
1094
|
prices: {
|
|
998
|
-
monthly: '
|
|
999
|
-
additionalUser: '
|
|
1095
|
+
monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1096
|
+
additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw'
|
|
1000
1097
|
},
|
|
1001
|
-
additionalUserPrice:
|
|
1098
|
+
additionalUserPrice: 30
|
|
1002
1099
|
}
|
|
1003
1100
|
};
|
|
1004
1101
|
var production = {
|
|
1005
1102
|
standard: {
|
|
1006
1103
|
id: 'prod_HsAwETfIUblsAT',
|
|
1007
1104
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1105
|
+
tariffs: {
|
|
1106
|
+
base: {
|
|
1107
|
+
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1108
|
+
price: 69,
|
|
1109
|
+
usageType: 'licensed',
|
|
1110
|
+
type: 'base'
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1008
1113
|
prices: {
|
|
1009
1114
|
monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1010
1115
|
additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
|
|
1011
1116
|
},
|
|
1012
|
-
additionalUserPrice:
|
|
1117
|
+
additionalUserPrice: 10
|
|
1013
1118
|
},
|
|
1014
1119
|
plus: {
|
|
1015
1120
|
id: 'prod_HsB2YJPEZ9H98c',
|
|
1016
1121
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1122
|
+
tariffs: {
|
|
1123
|
+
base: {
|
|
1124
|
+
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1125
|
+
price: 159,
|
|
1126
|
+
usageType: 'licensed',
|
|
1127
|
+
type: 'base'
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1017
1130
|
prices: {
|
|
1018
1131
|
monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1019
1132
|
additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
|
|
1020
1133
|
},
|
|
1021
|
-
additionalUserPrice:
|
|
1134
|
+
additionalUserPrice: 5
|
|
1022
1135
|
},
|
|
1023
|
-
|
|
1024
|
-
id: '
|
|
1136
|
+
classic: {
|
|
1137
|
+
id: 'prod_KzmYFhrWXrzWdR',
|
|
1025
1138
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1139
|
+
tariffs: {
|
|
1140
|
+
base: {
|
|
1141
|
+
id: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1142
|
+
price: 159,
|
|
1143
|
+
usageType: 'licensed',
|
|
1144
|
+
type: 'base'
|
|
1145
|
+
},
|
|
1146
|
+
additionalAdmin: {
|
|
1147
|
+
id: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
|
|
1148
|
+
price: 30,
|
|
1149
|
+
usageType: 'metered',
|
|
1150
|
+
type: 'extra_user'
|
|
1151
|
+
},
|
|
1152
|
+
additionalAgent: {
|
|
1153
|
+
id: 'price_1KJmzNLFzcsAA7x6DeUQScKY',
|
|
1154
|
+
price: 20,
|
|
1155
|
+
usageType: 'metered',
|
|
1156
|
+
type: 'extra_user'
|
|
1157
|
+
},
|
|
1158
|
+
additionalPro: {
|
|
1159
|
+
id: 'price_1KJmzNLFzcsAA7x695wsj6rA',
|
|
1160
|
+
price: 10,
|
|
1161
|
+
usageType: 'metered',
|
|
1162
|
+
type: 'extra_user'
|
|
1163
|
+
},
|
|
1164
|
+
additionalSeller: {
|
|
1165
|
+
id: 'price_1KJmzNLFzcsAA7x6gF62MX41',
|
|
1166
|
+
price: 2,
|
|
1167
|
+
usageType: 'metered',
|
|
1168
|
+
type: 'extra_user'
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1026
1171
|
prices: {
|
|
1027
|
-
monthly: '
|
|
1028
|
-
additionalUser: '
|
|
1172
|
+
monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1173
|
+
additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus'
|
|
1029
1174
|
},
|
|
1030
|
-
additionalUserPrice:
|
|
1175
|
+
additionalUserPrice: 30
|
|
1031
1176
|
}
|
|
1032
1177
|
};
|
|
1033
1178
|
/**
|
|
@@ -1139,7 +1284,7 @@ var DocumentsTypeEnum;
|
|
|
1139
1284
|
var EventsTypeEnum;
|
|
1140
1285
|
|
|
1141
1286
|
(function (EventsTypeEnum) {
|
|
1142
|
-
EventsTypeEnum["OTHER"] = "
|
|
1287
|
+
EventsTypeEnum["OTHER"] = "AUTRE";
|
|
1143
1288
|
EventsTypeEnum["VISIT"] = "VISIT";
|
|
1144
1289
|
EventsTypeEnum["DELIVERY"] = "DELIVERY";
|
|
1145
1290
|
EventsTypeEnum["CONSTRUCTION"] = "CONSTRUCTION";
|
|
@@ -1454,6 +1599,7 @@ var EmailTemplate;
|
|
|
1454
1599
|
EmailTemplate["NEW_ENTERPRISE"] = "new-enterprise";
|
|
1455
1600
|
EmailTemplate["USER_CONTACT"] = "user-contact";
|
|
1456
1601
|
EmailTemplate["PLAN"] = "plan";
|
|
1602
|
+
EmailTemplate["BILL"] = "bill";
|
|
1457
1603
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
1458
1604
|
|
|
1459
1605
|
var DevisPdfType;
|
|
@@ -1535,6 +1681,10 @@ var NomenclaturesIdentifier;
|
|
|
1535
1681
|
NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
|
|
1536
1682
|
NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
|
|
1537
1683
|
NomenclaturesIdentifier["OPERATIONS_LOT"] = "OPERATIONS_LOT";
|
|
1684
|
+
NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
|
|
1685
|
+
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1686
|
+
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1687
|
+
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
1538
1688
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1539
1689
|
|
|
1540
1690
|
var OperationQuantityEnum;
|
|
@@ -1565,6 +1715,14 @@ var MaterialResponsible;
|
|
|
1565
1715
|
MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
|
|
1566
1716
|
})(MaterialResponsible || (MaterialResponsible = {}));
|
|
1567
1717
|
|
|
1718
|
+
var ProjectPriceTypeEnum;
|
|
1719
|
+
|
|
1720
|
+
(function (ProjectPriceTypeEnum) {
|
|
1721
|
+
ProjectPriceTypeEnum["accepted"] = "accepted";
|
|
1722
|
+
ProjectPriceTypeEnum["prospected"] = "prospected";
|
|
1723
|
+
ProjectPriceTypeEnum["rejected"] = "rejected";
|
|
1724
|
+
})(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
|
|
1725
|
+
|
|
1568
1726
|
var types = {
|
|
1569
1727
|
__proto__: null,
|
|
1570
1728
|
get ROLE () { return ROLE$1; },
|
|
@@ -1617,7 +1775,8 @@ var types = {
|
|
|
1617
1775
|
get NomenclaturesIdentifier () { return NomenclaturesIdentifier; },
|
|
1618
1776
|
get OperationQuantityEnum () { return OperationQuantityEnum; },
|
|
1619
1777
|
get OperationRulesEnum () { return OperationRulesEnum; },
|
|
1620
|
-
get MaterialResponsible () { return MaterialResponsible; }
|
|
1778
|
+
get MaterialResponsible () { return MaterialResponsible; },
|
|
1779
|
+
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; }
|
|
1621
1780
|
};
|
|
1622
1781
|
|
|
1623
1782
|
function isBuffer(obj) {
|