@placeshakr/config 10.19.0-alpha.24 → 10.19.0-alpha.25
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 +189 -57
- 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 +189 -57
- package/dist/config.esm.js.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 +36 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- 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 +44 -0
|
@@ -908,23 +908,37 @@ var createProducts = function createProducts(params) {
|
|
|
908
908
|
id: params.standard.id,
|
|
909
909
|
internal: 'standard',
|
|
910
910
|
product: {
|
|
911
|
-
price: 6900,
|
|
912
|
-
active: true,
|
|
913
|
-
description: 'Pour les entreprises unipersonnelles',
|
|
914
911
|
id: params.standard.id,
|
|
915
912
|
name: 'Standard',
|
|
913
|
+
description: 'Pour les entreprises unipersonnelles',
|
|
916
914
|
type: 'service',
|
|
915
|
+
price: 69,
|
|
917
916
|
main: true,
|
|
917
|
+
active: true,
|
|
918
|
+
isPrivate: true,
|
|
918
919
|
rating: 1,
|
|
919
920
|
order: 1,
|
|
920
921
|
includes: {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
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
|
|
924
935
|
},
|
|
925
|
-
plans:
|
|
936
|
+
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
937
|
+
return t.id;
|
|
938
|
+
}),
|
|
926
939
|
tax_rates: params.standard.tax_rates
|
|
927
940
|
},
|
|
941
|
+
tariffs: params.standard.tariffs,
|
|
928
942
|
additionalUser: params.standard.prices.additionalUser,
|
|
929
943
|
additionalUserPrice: params.standard.additionalUserPrice
|
|
930
944
|
},
|
|
@@ -932,54 +946,76 @@ var createProducts = function createProducts(params) {
|
|
|
932
946
|
id: params.plus.id,
|
|
933
947
|
internal: 'plus',
|
|
934
948
|
product: {
|
|
935
|
-
active: true,
|
|
936
|
-
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
937
949
|
id: params.plus.id,
|
|
938
950
|
name: 'Plus',
|
|
951
|
+
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
939
952
|
type: 'service',
|
|
940
|
-
|
|
953
|
+
price: 159,
|
|
941
954
|
main: true,
|
|
942
|
-
|
|
943
|
-
|
|
955
|
+
active: true,
|
|
956
|
+
isPrivate: true,
|
|
957
|
+
rating: 2,
|
|
958
|
+
order: 2,
|
|
944
959
|
includes: {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
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
|
|
949
973
|
},
|
|
950
|
-
|
|
951
|
-
|
|
974
|
+
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
975
|
+
return t.id;
|
|
976
|
+
}),
|
|
977
|
+
tax_rates: params.plus.tax_rates
|
|
952
978
|
},
|
|
979
|
+
tariffs: params.plus.tariffs,
|
|
953
980
|
additionalUser: params.plus.prices.additionalUser,
|
|
954
981
|
additionalUserPrice: params.plus.additionalUserPrice
|
|
955
982
|
},
|
|
956
|
-
|
|
957
|
-
id: params.
|
|
958
|
-
internal: '
|
|
983
|
+
classic: {
|
|
984
|
+
id: params.classic.id,
|
|
985
|
+
internal: 'classic',
|
|
959
986
|
product: {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
name: 'Premium',
|
|
987
|
+
id: params.classic.id,
|
|
988
|
+
name: 'Classic',
|
|
989
|
+
description: '',
|
|
964
990
|
type: 'service',
|
|
965
|
-
|
|
991
|
+
price: 159,
|
|
966
992
|
main: true,
|
|
993
|
+
active: true,
|
|
967
994
|
rating: 3,
|
|
968
|
-
|
|
969
|
-
price: 29900,
|
|
970
|
-
order: 2,
|
|
995
|
+
order: 3,
|
|
971
996
|
includes: {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
997
|
+
maxAdminUsers: 1,
|
|
998
|
+
maxAgentUsers: 0,
|
|
999
|
+
maxProUsers: 0,
|
|
1000
|
+
maxSellerUsers: 0,
|
|
1001
|
+
authorizationManagement: true,
|
|
1002
|
+
dashboard: true,
|
|
976
1003
|
accounting: true,
|
|
977
|
-
|
|
1004
|
+
projectStorage: true,
|
|
1005
|
+
customCatalog: true,
|
|
1006
|
+
customConfig: true,
|
|
1007
|
+
exportReports: true,
|
|
1008
|
+
externalApiIntegration: true,
|
|
1009
|
+
support: true
|
|
978
1010
|
},
|
|
979
|
-
plans:
|
|
1011
|
+
plans: Object.values(params.classic.tariffs).map(function (t) {
|
|
1012
|
+
return t.id;
|
|
1013
|
+
}),
|
|
1014
|
+
tax_rates: params.classic.tax_rates
|
|
980
1015
|
},
|
|
981
|
-
|
|
982
|
-
|
|
1016
|
+
tariffs: params.classic.tariffs,
|
|
1017
|
+
additionalUser: params.classic.prices.additionalUser,
|
|
1018
|
+
additionalUserPrice: params.classic.additionalUserPrice
|
|
983
1019
|
}
|
|
984
1020
|
};
|
|
985
1021
|
return products;
|
|
@@ -987,60 +1023,156 @@ var createProducts = function createProducts(params) {
|
|
|
987
1023
|
|
|
988
1024
|
var testing = {
|
|
989
1025
|
standard: {
|
|
990
|
-
id: '
|
|
1026
|
+
id: 'prod_KzmEyS3UQ5lbnz',
|
|
991
1027
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1028
|
+
tariffs: {
|
|
1029
|
+
base: {
|
|
1030
|
+
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1031
|
+
price: 69,
|
|
1032
|
+
usageType: 'licensed',
|
|
1033
|
+
type: 'base'
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
992
1036
|
prices: {
|
|
993
|
-
monthly: '
|
|
994
|
-
additionalUser: '
|
|
1037
|
+
monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1038
|
+
additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe'
|
|
995
1039
|
},
|
|
996
|
-
additionalUserPrice:
|
|
1040
|
+
additionalUserPrice: 10
|
|
997
1041
|
},
|
|
998
1042
|
plus: {
|
|
999
|
-
id: '
|
|
1043
|
+
id: 'prod_KzmyY1ysEOeK93',
|
|
1000
1044
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1045
|
+
tariffs: {
|
|
1046
|
+
base: {
|
|
1047
|
+
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1048
|
+
price: 159,
|
|
1049
|
+
usageType: 'licensed',
|
|
1050
|
+
type: 'base'
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1001
1053
|
prices: {
|
|
1002
|
-
monthly: '
|
|
1003
|
-
additionalUser: '
|
|
1054
|
+
monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1055
|
+
additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX'
|
|
1004
1056
|
},
|
|
1005
|
-
additionalUserPrice:
|
|
1057
|
+
additionalUserPrice: 5
|
|
1006
1058
|
},
|
|
1007
|
-
|
|
1008
|
-
id: '
|
|
1059
|
+
classic: {
|
|
1060
|
+
id: 'prod_KzmO4rORyWl8cA',
|
|
1009
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
|
+
},
|
|
1010
1094
|
prices: {
|
|
1011
|
-
monthly: '
|
|
1012
|
-
additionalUser: '
|
|
1095
|
+
monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1096
|
+
additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw'
|
|
1013
1097
|
},
|
|
1014
|
-
additionalUserPrice:
|
|
1098
|
+
additionalUserPrice: 30
|
|
1015
1099
|
}
|
|
1016
1100
|
};
|
|
1017
1101
|
var production = {
|
|
1018
1102
|
standard: {
|
|
1019
1103
|
id: 'prod_HsAwETfIUblsAT',
|
|
1020
1104
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1105
|
+
tariffs: {
|
|
1106
|
+
base: {
|
|
1107
|
+
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1108
|
+
price: 69,
|
|
1109
|
+
usageType: 'licensed',
|
|
1110
|
+
type: 'base'
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1021
1113
|
prices: {
|
|
1022
1114
|
monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1023
1115
|
additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
|
|
1024
1116
|
},
|
|
1025
|
-
additionalUserPrice:
|
|
1117
|
+
additionalUserPrice: 10
|
|
1026
1118
|
},
|
|
1027
1119
|
plus: {
|
|
1028
1120
|
id: 'prod_HsB2YJPEZ9H98c',
|
|
1029
1121
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1122
|
+
tariffs: {
|
|
1123
|
+
base: {
|
|
1124
|
+
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1125
|
+
price: 159,
|
|
1126
|
+
usageType: 'licensed',
|
|
1127
|
+
type: 'base'
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1030
1130
|
prices: {
|
|
1031
1131
|
monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1032
1132
|
additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
|
|
1033
1133
|
},
|
|
1034
|
-
additionalUserPrice:
|
|
1134
|
+
additionalUserPrice: 5
|
|
1035
1135
|
},
|
|
1036
|
-
|
|
1037
|
-
id: '
|
|
1136
|
+
classic: {
|
|
1137
|
+
id: 'prod_KzmYFhrWXrzWdR',
|
|
1038
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
|
+
},
|
|
1039
1171
|
prices: {
|
|
1040
|
-
monthly: '
|
|
1041
|
-
additionalUser: '
|
|
1172
|
+
monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1173
|
+
additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus'
|
|
1042
1174
|
},
|
|
1043
|
-
additionalUserPrice:
|
|
1175
|
+
additionalUserPrice: 30
|
|
1044
1176
|
}
|
|
1045
1177
|
};
|
|
1046
1178
|
/**
|