@placeshakr/config 10.19.0-alpha.19 → 10.19.0-alpha.28
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 +196 -60
- 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 +196 -60
- 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 +1 -0
- 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 +39 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +4 -2
- package/src/environment/types.ts +2 -0
- package/src/helpers/index.ts +2 -0
- package/src/plans/base.ts +64 -37
- package/src/plans/index.ts +46 -20
- package/src/plans/types.ts +91 -3
- package/src/types.ts +60 -14
|
@@ -158,7 +158,8 @@ var productionEnvironment = {
|
|
|
158
158
|
histories: 'enterprises/{enterpriseId}/histories',
|
|
159
159
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
|
|
160
160
|
indexes: 'enterprises/{enterpriseId}/indexes',
|
|
161
|
-
notifications: 'enterprises/{enterpriseId}/notifications'
|
|
161
|
+
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
162
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
|
|
162
163
|
},
|
|
163
164
|
docs: {
|
|
164
165
|
user: 'users/{userId}',
|
|
@@ -199,7 +200,8 @@ var productionEnvironment = {
|
|
|
199
200
|
userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
|
|
200
201
|
history: 'enterprises/{enterpriseId}/histories/{historyId}',
|
|
201
202
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
|
|
202
|
-
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}'
|
|
203
|
+
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
204
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
|
|
203
205
|
},
|
|
204
206
|
indexes: {
|
|
205
207
|
users: 'users',
|
|
@@ -753,7 +755,8 @@ var helpers = {
|
|
|
753
755
|
invitations: /*#__PURE__*/FactoryCreateFunction(),
|
|
754
756
|
downPayment: /*#__PURE__*/FactoryCreateFunction(),
|
|
755
757
|
histories: /*#__PURE__*/FactoryCreateFunction(),
|
|
756
|
-
receptionVoucher: /*#__PURE__*/FactoryCreateFunction()
|
|
758
|
+
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
759
|
+
nomenclatures: /*#__PURE__*/FactoryCreateFunction()
|
|
757
760
|
};
|
|
758
761
|
|
|
759
762
|
/**
|
|
@@ -905,23 +908,37 @@ var createProducts = function createProducts(params) {
|
|
|
905
908
|
id: params.standard.id,
|
|
906
909
|
internal: 'standard',
|
|
907
910
|
product: {
|
|
908
|
-
price: 6900,
|
|
909
|
-
active: true,
|
|
910
|
-
description: 'Pour les entreprises unipersonnelles',
|
|
911
911
|
id: params.standard.id,
|
|
912
912
|
name: 'Standard',
|
|
913
|
+
description: 'Pour les entreprises unipersonnelles',
|
|
913
914
|
type: 'service',
|
|
915
|
+
price: 69,
|
|
914
916
|
main: true,
|
|
917
|
+
active: true,
|
|
918
|
+
isPrivate: true,
|
|
915
919
|
rating: 1,
|
|
916
920
|
order: 1,
|
|
917
921
|
includes: {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
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
|
|
921
935
|
},
|
|
922
|
-
plans:
|
|
936
|
+
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
937
|
+
return t.id;
|
|
938
|
+
}),
|
|
923
939
|
tax_rates: params.standard.tax_rates
|
|
924
940
|
},
|
|
941
|
+
tariffs: params.standard.tariffs,
|
|
925
942
|
additionalUser: params.standard.prices.additionalUser,
|
|
926
943
|
additionalUserPrice: params.standard.additionalUserPrice
|
|
927
944
|
},
|
|
@@ -929,54 +946,76 @@ var createProducts = function createProducts(params) {
|
|
|
929
946
|
id: params.plus.id,
|
|
930
947
|
internal: 'plus',
|
|
931
948
|
product: {
|
|
932
|
-
active: true,
|
|
933
|
-
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
934
949
|
id: params.plus.id,
|
|
935
950
|
name: 'Plus',
|
|
951
|
+
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
936
952
|
type: 'service',
|
|
937
|
-
|
|
953
|
+
price: 159,
|
|
938
954
|
main: true,
|
|
939
|
-
|
|
940
|
-
|
|
955
|
+
active: true,
|
|
956
|
+
isPrivate: true,
|
|
957
|
+
rating: 2,
|
|
958
|
+
order: 2,
|
|
941
959
|
includes: {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
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
|
|
946
973
|
},
|
|
947
|
-
|
|
948
|
-
|
|
974
|
+
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
975
|
+
return t.id;
|
|
976
|
+
}),
|
|
977
|
+
tax_rates: params.plus.tax_rates
|
|
949
978
|
},
|
|
979
|
+
tariffs: params.plus.tariffs,
|
|
950
980
|
additionalUser: params.plus.prices.additionalUser,
|
|
951
981
|
additionalUserPrice: params.plus.additionalUserPrice
|
|
952
982
|
},
|
|
953
|
-
|
|
954
|
-
id: params.
|
|
955
|
-
internal: '
|
|
983
|
+
classic: {
|
|
984
|
+
id: params.classic.id,
|
|
985
|
+
internal: 'classic',
|
|
956
986
|
product: {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
name: 'Premium',
|
|
987
|
+
id: params.classic.id,
|
|
988
|
+
name: 'Abonnement Articho',
|
|
989
|
+
description: '',
|
|
961
990
|
type: 'service',
|
|
962
|
-
|
|
991
|
+
price: 159,
|
|
963
992
|
main: true,
|
|
993
|
+
active: true,
|
|
964
994
|
rating: 3,
|
|
965
|
-
|
|
966
|
-
price: 29900,
|
|
967
|
-
order: 2,
|
|
995
|
+
order: 3,
|
|
968
996
|
includes: {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
997
|
+
maxAdminUsers: 1,
|
|
998
|
+
maxAgentUsers: 0,
|
|
999
|
+
maxProUsers: 0,
|
|
1000
|
+
maxSellerUsers: 0,
|
|
1001
|
+
authorizationManagement: true,
|
|
1002
|
+
dashboard: true,
|
|
973
1003
|
accounting: true,
|
|
974
|
-
|
|
1004
|
+
projectStorage: true,
|
|
1005
|
+
customCatalog: true,
|
|
1006
|
+
customConfig: true,
|
|
1007
|
+
exportReports: true,
|
|
1008
|
+
externalApiIntegration: true,
|
|
1009
|
+
support: true
|
|
975
1010
|
},
|
|
976
|
-
plans:
|
|
1011
|
+
plans: Object.values(params.classic.tariffs).map(function (t) {
|
|
1012
|
+
return t.id;
|
|
1013
|
+
}),
|
|
1014
|
+
tax_rates: params.classic.tax_rates
|
|
977
1015
|
},
|
|
978
|
-
|
|
979
|
-
|
|
1016
|
+
tariffs: params.classic.tariffs,
|
|
1017
|
+
additionalUser: params.classic.prices.additionalUser,
|
|
1018
|
+
additionalUserPrice: params.classic.additionalUserPrice
|
|
980
1019
|
}
|
|
981
1020
|
};
|
|
982
1021
|
return products;
|
|
@@ -984,60 +1023,156 @@ var createProducts = function createProducts(params) {
|
|
|
984
1023
|
|
|
985
1024
|
var testing = {
|
|
986
1025
|
standard: {
|
|
987
|
-
id: '
|
|
1026
|
+
id: 'prod_KzmEyS3UQ5lbnz',
|
|
988
1027
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1028
|
+
tariffs: {
|
|
1029
|
+
base: {
|
|
1030
|
+
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1031
|
+
price: 69,
|
|
1032
|
+
usageType: 'licensed',
|
|
1033
|
+
type: 'base'
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
989
1036
|
prices: {
|
|
990
|
-
monthly: '
|
|
991
|
-
additionalUser: '
|
|
1037
|
+
monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1038
|
+
additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe'
|
|
992
1039
|
},
|
|
993
|
-
additionalUserPrice:
|
|
1040
|
+
additionalUserPrice: 10
|
|
994
1041
|
},
|
|
995
1042
|
plus: {
|
|
996
|
-
id: '
|
|
1043
|
+
id: 'prod_KzmyY1ysEOeK93',
|
|
997
1044
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1045
|
+
tariffs: {
|
|
1046
|
+
base: {
|
|
1047
|
+
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1048
|
+
price: 159,
|
|
1049
|
+
usageType: 'licensed',
|
|
1050
|
+
type: 'base'
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
998
1053
|
prices: {
|
|
999
|
-
monthly: '
|
|
1000
|
-
additionalUser: '
|
|
1054
|
+
monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1055
|
+
additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX'
|
|
1001
1056
|
},
|
|
1002
|
-
additionalUserPrice:
|
|
1057
|
+
additionalUserPrice: 5
|
|
1003
1058
|
},
|
|
1004
|
-
|
|
1005
|
-
id: '
|
|
1059
|
+
classic: {
|
|
1060
|
+
id: 'prod_KzmO4rORyWl8cA',
|
|
1006
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
|
+
},
|
|
1007
1094
|
prices: {
|
|
1008
|
-
monthly: '
|
|
1009
|
-
additionalUser: '
|
|
1095
|
+
monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1096
|
+
additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw'
|
|
1010
1097
|
},
|
|
1011
|
-
additionalUserPrice:
|
|
1098
|
+
additionalUserPrice: 30
|
|
1012
1099
|
}
|
|
1013
1100
|
};
|
|
1014
1101
|
var production = {
|
|
1015
1102
|
standard: {
|
|
1016
1103
|
id: 'prod_HsAwETfIUblsAT',
|
|
1017
1104
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1105
|
+
tariffs: {
|
|
1106
|
+
base: {
|
|
1107
|
+
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1108
|
+
price: 69,
|
|
1109
|
+
usageType: 'licensed',
|
|
1110
|
+
type: 'base'
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1018
1113
|
prices: {
|
|
1019
1114
|
monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1020
1115
|
additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
|
|
1021
1116
|
},
|
|
1022
|
-
additionalUserPrice:
|
|
1117
|
+
additionalUserPrice: 10
|
|
1023
1118
|
},
|
|
1024
1119
|
plus: {
|
|
1025
1120
|
id: 'prod_HsB2YJPEZ9H98c',
|
|
1026
1121
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1122
|
+
tariffs: {
|
|
1123
|
+
base: {
|
|
1124
|
+
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1125
|
+
price: 159,
|
|
1126
|
+
usageType: 'licensed',
|
|
1127
|
+
type: 'base'
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1027
1130
|
prices: {
|
|
1028
1131
|
monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1029
1132
|
additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
|
|
1030
1133
|
},
|
|
1031
|
-
additionalUserPrice:
|
|
1134
|
+
additionalUserPrice: 5
|
|
1032
1135
|
},
|
|
1033
|
-
|
|
1034
|
-
id: '
|
|
1136
|
+
classic: {
|
|
1137
|
+
id: 'prod_KzmYFhrWXrzWdR',
|
|
1035
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
|
+
},
|
|
1036
1171
|
prices: {
|
|
1037
|
-
monthly: '
|
|
1038
|
-
additionalUser: '
|
|
1172
|
+
monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1173
|
+
additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus'
|
|
1039
1174
|
},
|
|
1040
|
-
additionalUserPrice:
|
|
1175
|
+
additionalUserPrice: 30
|
|
1041
1176
|
}
|
|
1042
1177
|
};
|
|
1043
1178
|
/**
|
|
@@ -1549,6 +1684,7 @@ var NomenclaturesIdentifier;
|
|
|
1549
1684
|
NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
|
|
1550
1685
|
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1551
1686
|
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1687
|
+
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
1552
1688
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1553
1689
|
|
|
1554
1690
|
var OperationQuantityEnum;
|