@placeshakr/config 10.19.6-alpha.0 → 10.19.6-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.cjs.development.js +339 -600
- 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 +339 -600
- 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 +35 -16
- package/dist/plans/types.d.ts.map +1 -1
- package/dist/types.d.ts +50 -17
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +7 -3
- package/src/environment/types.ts +2 -0
- package/src/helpers/index.ts +3 -1
- package/src/plans/base.ts +205 -219
- package/src/plans/index.ts +113 -178
- package/src/plans/types.ts +53 -24
- package/src/types.ts +66 -33
|
@@ -161,7 +161,8 @@ var productionEnvironment = {
|
|
|
161
161
|
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
162
162
|
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
|
|
163
163
|
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
|
|
164
|
-
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups'
|
|
164
|
+
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
|
|
165
|
+
devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions'
|
|
165
166
|
},
|
|
166
167
|
docs: {
|
|
167
168
|
user: 'users/{userId}',
|
|
@@ -205,7 +206,8 @@ var productionEnvironment = {
|
|
|
205
206
|
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
206
207
|
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
|
|
207
208
|
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
|
|
208
|
-
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}'
|
|
209
|
+
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
|
|
210
|
+
devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}'
|
|
209
211
|
},
|
|
210
212
|
indexes: {
|
|
211
213
|
users: 'users',
|
|
@@ -287,7 +289,7 @@ var productionEnvironment = {
|
|
|
287
289
|
},
|
|
288
290
|
admins: {
|
|
289
291
|
searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
|
|
290
|
-
attributesForFaceting: ['active', 'searchable(email)', 'searchable(scope)'],
|
|
292
|
+
attributesForFaceting: ['active', 'searchable(email)', 'searchable(userId)', 'searchable(scope)'],
|
|
291
293
|
maxValuesPerFacet: 1000,
|
|
292
294
|
maxFacetHits: 100
|
|
293
295
|
},
|
|
@@ -318,7 +320,7 @@ var productionEnvironment = {
|
|
|
318
320
|
},
|
|
319
321
|
materials: {
|
|
320
322
|
searchableAttributes: ['name', 'unitPrice', 'provider'],
|
|
321
|
-
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', '
|
|
323
|
+
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id'],
|
|
322
324
|
ranking: ['asc(name)'],
|
|
323
325
|
maxValuesPerFacet: 1000,
|
|
324
326
|
maxFacetHits: 100
|
|
@@ -331,7 +333,7 @@ var productionEnvironment = {
|
|
|
331
333
|
},
|
|
332
334
|
operationsMaterials: {
|
|
333
335
|
searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
|
|
334
|
-
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)'],
|
|
336
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(provider)', 'searchable(optId)', 'searchable(externalId)'],
|
|
335
337
|
ranking: ['asc(order)'],
|
|
336
338
|
maxValuesPerFacet: 1000,
|
|
337
339
|
maxFacetHits: 100
|
|
@@ -772,7 +774,8 @@ var helpers = {
|
|
|
772
774
|
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
773
775
|
nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
|
|
774
776
|
operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
|
|
775
|
-
operationsGroups: /*#__PURE__*/FactoryCreateFunction()
|
|
777
|
+
operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
|
|
778
|
+
devisVersions: /*#__PURE__*/FactoryCreateFunction()
|
|
776
779
|
};
|
|
777
780
|
|
|
778
781
|
/**
|
|
@@ -920,82 +923,6 @@ var getPath = function getPath(path, params) {
|
|
|
920
923
|
*/
|
|
921
924
|
var createProducts = function createProducts(params) {
|
|
922
925
|
var products = {
|
|
923
|
-
standard: {
|
|
924
|
-
id: params.standard.id,
|
|
925
|
-
internal: 'standard',
|
|
926
|
-
product: {
|
|
927
|
-
id: params.standard.id,
|
|
928
|
-
name: 'Standard',
|
|
929
|
-
description: 'Pour les entreprises unipersonnelles',
|
|
930
|
-
type: 'service',
|
|
931
|
-
price: 69,
|
|
932
|
-
main: true,
|
|
933
|
-
active: true,
|
|
934
|
-
isPrivate: true,
|
|
935
|
-
rating: 1,
|
|
936
|
-
order: 1,
|
|
937
|
-
includes: {
|
|
938
|
-
maxAdminUsers: null,
|
|
939
|
-
maxAgentUsers: null,
|
|
940
|
-
maxProUsers: null,
|
|
941
|
-
maxSellerUsers: null,
|
|
942
|
-
authorizationManagement: true,
|
|
943
|
-
dashboard: true,
|
|
944
|
-
accounting: true,
|
|
945
|
-
projectStorage: true,
|
|
946
|
-
customCatalog: true,
|
|
947
|
-
customConfig: true,
|
|
948
|
-
exportReports: true,
|
|
949
|
-
externalApiIntegration: true,
|
|
950
|
-
support: true
|
|
951
|
-
},
|
|
952
|
-
plans: Object.values(params.standard.tariffs).map(function (t) {
|
|
953
|
-
return t.id;
|
|
954
|
-
}),
|
|
955
|
-
tax_rates: params.standard.tax_rates
|
|
956
|
-
},
|
|
957
|
-
tariffs: params.standard.tariffs // additionalUser: params.standard.prices.additionalUser,
|
|
958
|
-
// additionalUserPrice: params.standard.additionalUserPrice,
|
|
959
|
-
|
|
960
|
-
},
|
|
961
|
-
plus: {
|
|
962
|
-
id: params.plus.id,
|
|
963
|
-
internal: 'plus',
|
|
964
|
-
product: {
|
|
965
|
-
id: params.plus.id,
|
|
966
|
-
name: 'Plus',
|
|
967
|
-
description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
968
|
-
type: 'service',
|
|
969
|
-
price: 159,
|
|
970
|
-
main: true,
|
|
971
|
-
active: true,
|
|
972
|
-
isPrivate: true,
|
|
973
|
-
rating: 2,
|
|
974
|
-
order: 2,
|
|
975
|
-
includes: {
|
|
976
|
-
maxAdminUsers: null,
|
|
977
|
-
maxAgentUsers: null,
|
|
978
|
-
maxProUsers: null,
|
|
979
|
-
maxSellerUsers: null,
|
|
980
|
-
authorizationManagement: true,
|
|
981
|
-
dashboard: true,
|
|
982
|
-
accounting: true,
|
|
983
|
-
projectStorage: true,
|
|
984
|
-
customCatalog: true,
|
|
985
|
-
customConfig: true,
|
|
986
|
-
exportReports: true,
|
|
987
|
-
externalApiIntegration: true,
|
|
988
|
-
support: true
|
|
989
|
-
},
|
|
990
|
-
plans: Object.values(params.plus.tariffs).map(function (t) {
|
|
991
|
-
return t.id;
|
|
992
|
-
}),
|
|
993
|
-
tax_rates: params.plus.tax_rates
|
|
994
|
-
},
|
|
995
|
-
tariffs: params.plus.tariffs // additionalUser: params.plus.prices.additionalUser,
|
|
996
|
-
// additionalUserPrice: params.plus.additionalUserPrice,
|
|
997
|
-
|
|
998
|
-
},
|
|
999
926
|
classic: {
|
|
1000
927
|
id: params.classic.id,
|
|
1001
928
|
internal: 'classic',
|
|
@@ -1007,7 +934,7 @@ var createProducts = function createProducts(params) {
|
|
|
1007
934
|
price: 159,
|
|
1008
935
|
main: true,
|
|
1009
936
|
active: true,
|
|
1010
|
-
isPrivate:
|
|
937
|
+
isPrivate: false,
|
|
1011
938
|
rating: 3,
|
|
1012
939
|
order: 3,
|
|
1013
940
|
includes: {
|
|
@@ -1030,201 +957,217 @@ var createProducts = function createProducts(params) {
|
|
|
1030
957
|
}),
|
|
1031
958
|
tax_rates: params.classic.tax_rates
|
|
1032
959
|
},
|
|
1033
|
-
tariffs: params.classic.tariffs
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
960
|
+
tariffs: params.classic.tariffs
|
|
961
|
+
} // standard: {
|
|
962
|
+
// id: params.standard.id,
|
|
963
|
+
// internal: 'standard',
|
|
964
|
+
// product: {
|
|
965
|
+
// id: params.standard.id,
|
|
966
|
+
// name: 'Standard',
|
|
967
|
+
// description: 'Pour les entreprises unipersonnelles',
|
|
968
|
+
// type: 'service',
|
|
969
|
+
// price: 69,
|
|
970
|
+
// main: true,
|
|
971
|
+
// active: true,
|
|
972
|
+
// isPrivate: true,
|
|
973
|
+
// rating: 1,
|
|
974
|
+
// order: 1,
|
|
975
|
+
// includes: {
|
|
976
|
+
// maxAdminUsers: null,
|
|
977
|
+
// maxAgentUsers: null,
|
|
978
|
+
// maxProUsers: null,
|
|
979
|
+
// maxSellerUsers: null,
|
|
980
|
+
// authorizationManagement: true,
|
|
981
|
+
// dashboard: true,
|
|
982
|
+
// accounting: true,
|
|
983
|
+
// projectStorage: true,
|
|
984
|
+
// customCatalog: true,
|
|
985
|
+
// customConfig: true,
|
|
986
|
+
// exportReports: true,
|
|
987
|
+
// externalApiIntegration: true,
|
|
988
|
+
// support: true,
|
|
989
|
+
// },
|
|
990
|
+
// plans: Object.values(params.standard.tariffs).map(t => t.id),
|
|
991
|
+
// tax_rates: params.standard.tax_rates,
|
|
992
|
+
// },
|
|
993
|
+
// tariffs: params.standard.tariffs,
|
|
994
|
+
// },
|
|
995
|
+
// plus: {
|
|
996
|
+
// id: params.plus.id,
|
|
997
|
+
// internal: 'plus',
|
|
998
|
+
// product: {
|
|
999
|
+
// id: params.plus.id,
|
|
1000
|
+
// name: 'Plus',
|
|
1001
|
+
// description: 'Idéal pour les agences et les entreprises de plus grande taille',
|
|
1002
|
+
// type: 'service',
|
|
1003
|
+
// price: 159,
|
|
1004
|
+
// main: true,
|
|
1005
|
+
// active: true,
|
|
1006
|
+
// isPrivate: true,
|
|
1007
|
+
// rating: 2,
|
|
1008
|
+
// order: 2,
|
|
1009
|
+
// includes: {
|
|
1010
|
+
// maxAdminUsers: null,
|
|
1011
|
+
// maxAgentUsers: null,
|
|
1012
|
+
// maxProUsers: null,
|
|
1013
|
+
// maxSellerUsers: null,
|
|
1014
|
+
// authorizationManagement: true,
|
|
1015
|
+
// dashboard: true,
|
|
1016
|
+
// accounting: true,
|
|
1017
|
+
// projectStorage: true,
|
|
1018
|
+
// customCatalog: true,
|
|
1019
|
+
// customConfig: true,
|
|
1020
|
+
// exportReports: true,
|
|
1021
|
+
// externalApiIntegration: true,
|
|
1022
|
+
// support: true,
|
|
1023
|
+
// },
|
|
1024
|
+
// plans: Object.values(params.plus.tariffs).map(t => t.id),
|
|
1025
|
+
// tax_rates: params.plus.tax_rates,
|
|
1026
|
+
// },
|
|
1027
|
+
// tariffs: params.plus.tariffs,
|
|
1028
|
+
// },
|
|
1029
|
+
// test_1: {
|
|
1030
|
+
// id: params.test_1.id,
|
|
1031
|
+
// internal: 'test_1',
|
|
1032
|
+
// product: {
|
|
1033
|
+
// id: params.test_1.id,
|
|
1034
|
+
// name: 'Test 1',
|
|
1035
|
+
// description: '',
|
|
1036
|
+
// type: 'service',
|
|
1037
|
+
// price: 50,
|
|
1038
|
+
// main: true,
|
|
1039
|
+
// active: true,
|
|
1040
|
+
// isPrivate: false,
|
|
1041
|
+
// rating: 1,
|
|
1042
|
+
// order: 4,
|
|
1043
|
+
// includes: {
|
|
1044
|
+
// maxAdminUsers: 1,
|
|
1045
|
+
// maxAgentUsers: 0,
|
|
1046
|
+
// maxProUsers: 0,
|
|
1047
|
+
// maxSellerUsers: 0,
|
|
1048
|
+
// authorizationManagement: true,
|
|
1049
|
+
// dashboard: true,
|
|
1050
|
+
// accounting: true,
|
|
1051
|
+
// projectStorage: true,
|
|
1052
|
+
// customCatalog: true,
|
|
1053
|
+
// customConfig: true,
|
|
1054
|
+
// exportReports: true,
|
|
1055
|
+
// externalApiIntegration: true,
|
|
1056
|
+
// support: true,
|
|
1057
|
+
// },
|
|
1058
|
+
// plans: Object.values(params.test_1.tariffs).map(t => t.id),
|
|
1059
|
+
// tax_rates: params.test_1.tax_rates,
|
|
1060
|
+
// },
|
|
1061
|
+
// tariffs: params.test_1.tariffs,
|
|
1062
|
+
// },
|
|
1063
|
+
// test_2: {
|
|
1064
|
+
// id: params.test_2.id,
|
|
1065
|
+
// internal: 'test_2',
|
|
1066
|
+
// product: {
|
|
1067
|
+
// id: params.test_2.id,
|
|
1068
|
+
// name: 'Test 2',
|
|
1069
|
+
// description: '',
|
|
1070
|
+
// type: 'service',
|
|
1071
|
+
// price: 100,
|
|
1072
|
+
// main: true,
|
|
1073
|
+
// active: true,
|
|
1074
|
+
// isPrivate: false,
|
|
1075
|
+
// rating: 2,
|
|
1076
|
+
// order: 5,
|
|
1077
|
+
// includes: {
|
|
1078
|
+
// maxAdminUsers: 1,
|
|
1079
|
+
// maxAgentUsers: 0,
|
|
1080
|
+
// maxProUsers: 0,
|
|
1081
|
+
// maxSellerUsers: 0,
|
|
1082
|
+
// authorizationManagement: true,
|
|
1083
|
+
// dashboard: true,
|
|
1084
|
+
// accounting: true,
|
|
1085
|
+
// projectStorage: true,
|
|
1086
|
+
// customCatalog: true,
|
|
1087
|
+
// customConfig: true,
|
|
1088
|
+
// exportReports: true,
|
|
1089
|
+
// externalApiIntegration: true,
|
|
1090
|
+
// support: true,
|
|
1091
|
+
// },
|
|
1092
|
+
// plans: Object.values(params.test_2.tariffs).map(t => t.id),
|
|
1093
|
+
// tax_rates: params.test_2.tax_rates,
|
|
1094
|
+
// },
|
|
1095
|
+
// tariffs: params.test_2.tariffs,
|
|
1096
|
+
// },
|
|
1097
|
+
// test_3: {
|
|
1098
|
+
// id: params.test_3.id,
|
|
1099
|
+
// internal: 'test_3',
|
|
1100
|
+
// product: {
|
|
1101
|
+
// id: params.test_3.id,
|
|
1102
|
+
// name: 'Test 3',
|
|
1103
|
+
// description: '',
|
|
1104
|
+
// type: 'service',
|
|
1105
|
+
// price: 80,
|
|
1106
|
+
// main: true,
|
|
1107
|
+
// active: true,
|
|
1108
|
+
// isPrivate: false,
|
|
1109
|
+
// rating: 3,
|
|
1110
|
+
// order: 6,
|
|
1111
|
+
// includes: {
|
|
1112
|
+
// maxAdminUsers: null,
|
|
1113
|
+
// maxAgentUsers: null,
|
|
1114
|
+
// maxProUsers: null,
|
|
1115
|
+
// maxSellerUsers: null,
|
|
1116
|
+
// authorizationManagement: true,
|
|
1117
|
+
// dashboard: true,
|
|
1118
|
+
// accounting: true,
|
|
1119
|
+
// projectStorage: true,
|
|
1120
|
+
// customCatalog: true,
|
|
1121
|
+
// customConfig: true,
|
|
1122
|
+
// exportReports: true,
|
|
1123
|
+
// externalApiIntegration: true,
|
|
1124
|
+
// support: true,
|
|
1125
|
+
// },
|
|
1126
|
+
// plans: Object.values(params.test_3.tariffs).map(t => t.id),
|
|
1127
|
+
// tax_rates: params.test_3.tax_rates,
|
|
1128
|
+
// },
|
|
1129
|
+
// tariffs: params.test_3.tariffs,
|
|
1130
|
+
// },
|
|
1131
|
+
// test_4: {
|
|
1132
|
+
// id: params.test_4.id,
|
|
1133
|
+
// internal: 'test_4',
|
|
1134
|
+
// product: {
|
|
1135
|
+
// id: params.test_4.id,
|
|
1136
|
+
// name: 'Test 4',
|
|
1137
|
+
// description: '',
|
|
1138
|
+
// type: 'service',
|
|
1139
|
+
// price: 65,
|
|
1140
|
+
// main: true,
|
|
1141
|
+
// active: true,
|
|
1142
|
+
// isPrivate: false,
|
|
1143
|
+
// rating: 3,
|
|
1144
|
+
// order: 7,
|
|
1145
|
+
// includes: {
|
|
1146
|
+
// maxAdminUsers: 3,
|
|
1147
|
+
// maxAgentUsers: 3,
|
|
1148
|
+
// maxProUsers: 3,
|
|
1149
|
+
// maxSellerUsers: 3,
|
|
1150
|
+
// authorizationManagement: true,
|
|
1151
|
+
// dashboard: true,
|
|
1152
|
+
// accounting: true,
|
|
1153
|
+
// projectStorage: true,
|
|
1154
|
+
// customCatalog: true,
|
|
1155
|
+
// customConfig: true,
|
|
1156
|
+
// exportReports: true,
|
|
1157
|
+
// externalApiIntegration: true,
|
|
1158
|
+
// support: true,
|
|
1159
|
+
// },
|
|
1160
|
+
// plans: Object.values(params.test_4.tariffs).map(t => t.id),
|
|
1161
|
+
// tax_rates: params.test_4.tax_rates,
|
|
1162
|
+
// },
|
|
1163
|
+
// tariffs: params.test_4.tariffs,
|
|
1164
|
+
// },
|
|
1187
1165
|
|
|
1188
|
-
}
|
|
1189
1166
|
};
|
|
1190
1167
|
return products;
|
|
1191
1168
|
};
|
|
1192
1169
|
|
|
1193
1170
|
var testing = {
|
|
1194
|
-
standard: {
|
|
1195
|
-
id: 'prod_KzmEyS3UQ5lbnz',
|
|
1196
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1197
|
-
tariffs: {
|
|
1198
|
-
base: {
|
|
1199
|
-
id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1200
|
-
price: 69,
|
|
1201
|
-
usageType: 'licensed',
|
|
1202
|
-
type: 'base'
|
|
1203
|
-
}
|
|
1204
|
-
} // prices: {
|
|
1205
|
-
// monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1206
|
-
// additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1207
|
-
// },
|
|
1208
|
-
// additionalUserPrice: 10,
|
|
1209
|
-
|
|
1210
|
-
},
|
|
1211
|
-
plus: {
|
|
1212
|
-
id: 'prod_KzmyY1ysEOeK93',
|
|
1213
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1214
|
-
tariffs: {
|
|
1215
|
-
base: {
|
|
1216
|
-
id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1217
|
-
price: 159,
|
|
1218
|
-
usageType: 'licensed',
|
|
1219
|
-
type: 'base'
|
|
1220
|
-
}
|
|
1221
|
-
} // prices: {
|
|
1222
|
-
// monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1223
|
-
// additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX',
|
|
1224
|
-
// },
|
|
1225
|
-
// additionalUserPrice: 5,
|
|
1226
|
-
|
|
1227
|
-
},
|
|
1228
1171
|
classic: {
|
|
1229
1172
|
id: 'prod_KzmO4rORyWl8cA',
|
|
1230
1173
|
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
@@ -1259,189 +1202,69 @@ var testing = {
|
|
|
1259
1202
|
usageType: 'metered',
|
|
1260
1203
|
type: 'extra_user'
|
|
1261
1204
|
}
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
},
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
},
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
price: 20,
|
|
1323
|
-
usageType: 'metered',
|
|
1324
|
-
type: 'extra_user'
|
|
1325
|
-
},
|
|
1326
|
-
additionalAgent: {
|
|
1327
|
-
id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6',
|
|
1328
|
-
price: 16,
|
|
1329
|
-
usageType: 'metered',
|
|
1330
|
-
type: 'extra_user'
|
|
1331
|
-
},
|
|
1332
|
-
additionalPro: {
|
|
1333
|
-
id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN',
|
|
1334
|
-
price: 12,
|
|
1335
|
-
usageType: 'metered',
|
|
1336
|
-
type: 'extra_user'
|
|
1337
|
-
},
|
|
1338
|
-
additionalSeller: {
|
|
1339
|
-
id: 'price_1KMrqsLFzcsAA7x61NRR9gne',
|
|
1340
|
-
price: 8,
|
|
1341
|
-
usageType: 'metered',
|
|
1342
|
-
type: 'extra_user'
|
|
1343
|
-
}
|
|
1344
|
-
} // prices: {
|
|
1345
|
-
// monthly: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
|
|
1346
|
-
// additionalUser: 'price_1KMrqrLFzcsAA7x6cu3it43A',
|
|
1347
|
-
// },
|
|
1348
|
-
// additionalUserPrice: 20,
|
|
1349
|
-
|
|
1350
|
-
},
|
|
1351
|
-
test_3: {
|
|
1352
|
-
id: 'prod_L2xnCHGi6QNgX8',
|
|
1353
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1354
|
-
tariffs: {
|
|
1355
|
-
base: {
|
|
1356
|
-
id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
|
|
1357
|
-
price: 80,
|
|
1358
|
-
usageType: 'licensed',
|
|
1359
|
-
type: 'base'
|
|
1360
|
-
}
|
|
1361
|
-
} // prices: {
|
|
1362
|
-
// monthly: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
|
|
1363
|
-
// additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1364
|
-
// },
|
|
1365
|
-
// additionalUserPrice: 10,
|
|
1366
|
-
|
|
1367
|
-
},
|
|
1368
|
-
test_4: {
|
|
1369
|
-
id: 'prod_L2yWF4ssugw8Ln',
|
|
1370
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1371
|
-
tariffs: {
|
|
1372
|
-
base: {
|
|
1373
|
-
id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
|
|
1374
|
-
price: 65,
|
|
1375
|
-
usageType: 'licensed',
|
|
1376
|
-
type: 'base'
|
|
1377
|
-
},
|
|
1378
|
-
additionalAdmin: {
|
|
1379
|
-
id: 'price_1KMsZFLFzcsAA7x6EjaDfica',
|
|
1380
|
-
price: 15,
|
|
1381
|
-
usageType: 'metered',
|
|
1382
|
-
type: 'extra_user'
|
|
1383
|
-
},
|
|
1384
|
-
additionalAgent: {
|
|
1385
|
-
id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4',
|
|
1386
|
-
price: 12,
|
|
1387
|
-
usageType: 'metered',
|
|
1388
|
-
type: 'extra_user'
|
|
1389
|
-
},
|
|
1390
|
-
additionalPro: {
|
|
1391
|
-
id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND',
|
|
1392
|
-
price: 9,
|
|
1393
|
-
usageType: 'metered',
|
|
1394
|
-
type: 'extra_user'
|
|
1395
|
-
},
|
|
1396
|
-
additionalSeller: {
|
|
1397
|
-
id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW',
|
|
1398
|
-
price: 6,
|
|
1399
|
-
usageType: 'metered',
|
|
1400
|
-
type: 'extra_user'
|
|
1401
|
-
}
|
|
1402
|
-
} // prices: {
|
|
1403
|
-
// monthly: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
|
|
1404
|
-
// additionalUser: 'price_1KMsZFLFzcsAA7x6EjaDfica',
|
|
1405
|
-
// },
|
|
1406
|
-
// additionalUserPrice: 15,
|
|
1205
|
+
}
|
|
1206
|
+
} // standard: {
|
|
1207
|
+
// id: 'prod_KzmEyS3UQ5lbnz',
|
|
1208
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1209
|
+
// tariffs: {
|
|
1210
|
+
// base: { id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu', price: 69, usageType: 'licensed', type: 'base' },
|
|
1211
|
+
// },
|
|
1212
|
+
// // prices: {
|
|
1213
|
+
// // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1214
|
+
// // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1215
|
+
// // },
|
|
1216
|
+
// // additionalUserPrice: 10,
|
|
1217
|
+
// },
|
|
1218
|
+
// plus: {
|
|
1219
|
+
// id: 'prod_KzmyY1ysEOeK93',
|
|
1220
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1221
|
+
// tariffs: {
|
|
1222
|
+
// base: { id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv', price: 159, usageType: 'licensed', type: 'base' },
|
|
1223
|
+
// },
|
|
1224
|
+
// },
|
|
1225
|
+
// test_1: {
|
|
1226
|
+
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1227
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1228
|
+
// tariffs: {
|
|
1229
|
+
// base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
|
|
1230
|
+
// additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
|
|
1231
|
+
// additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1232
|
+
// additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1233
|
+
// additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
|
|
1234
|
+
// },
|
|
1235
|
+
// },
|
|
1236
|
+
// test_2: {
|
|
1237
|
+
// id: 'prod_L2xmEk7gqqRJtS',
|
|
1238
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1239
|
+
// tariffs: {
|
|
1240
|
+
// base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
|
|
1241
|
+
// additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
|
|
1242
|
+
// additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
|
|
1243
|
+
// additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1244
|
+
// additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1245
|
+
// },
|
|
1246
|
+
// },
|
|
1247
|
+
// test_3: {
|
|
1248
|
+
// id: 'prod_L2xnCHGi6QNgX8',
|
|
1249
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1250
|
+
// tariffs: {
|
|
1251
|
+
// base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
|
|
1252
|
+
// },
|
|
1253
|
+
// },
|
|
1254
|
+
// test_4: {
|
|
1255
|
+
// id: 'prod_L2yWF4ssugw8Ln',
|
|
1256
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1257
|
+
// tariffs: {
|
|
1258
|
+
// base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
|
|
1259
|
+
// additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
|
|
1260
|
+
// additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1261
|
+
// additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
|
|
1262
|
+
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1263
|
+
// },
|
|
1264
|
+
// },
|
|
1407
1265
|
|
|
1408
|
-
}
|
|
1409
1266
|
};
|
|
1410
1267
|
var production = {
|
|
1411
|
-
standard: {
|
|
1412
|
-
id: 'prod_HsAwETfIUblsAT',
|
|
1413
|
-
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1414
|
-
tariffs: {
|
|
1415
|
-
base: {
|
|
1416
|
-
id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1417
|
-
price: 69,
|
|
1418
|
-
usageType: 'licensed',
|
|
1419
|
-
type: 'base'
|
|
1420
|
-
}
|
|
1421
|
-
} // prices: {
|
|
1422
|
-
// monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1423
|
-
// additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr',
|
|
1424
|
-
// },
|
|
1425
|
-
// additionalUserPrice: 10,
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1428
|
-
plus: {
|
|
1429
|
-
id: 'prod_HsB2YJPEZ9H98c',
|
|
1430
|
-
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1431
|
-
tariffs: {
|
|
1432
|
-
base: {
|
|
1433
|
-
id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1434
|
-
price: 159,
|
|
1435
|
-
usageType: 'licensed',
|
|
1436
|
-
type: 'base'
|
|
1437
|
-
}
|
|
1438
|
-
} // prices: {
|
|
1439
|
-
// monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1440
|
-
// additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6',
|
|
1441
|
-
// },
|
|
1442
|
-
// additionalUserPrice: 5,
|
|
1443
|
-
|
|
1444
|
-
},
|
|
1445
1268
|
classic: {
|
|
1446
1269
|
id: 'prod_KzmYFhrWXrzWdR',
|
|
1447
1270
|
tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
@@ -1476,153 +1299,62 @@ var production = {
|
|
|
1476
1299
|
usageType: 'metered',
|
|
1477
1300
|
type: 'extra_user'
|
|
1478
1301
|
}
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
usageType: 'licensed',
|
|
1535
|
-
type: 'base'
|
|
1536
|
-
},
|
|
1537
|
-
additionalAdmin: {
|
|
1538
|
-
id: 'price_1KMrqrLFzcsAA7x6cu3it43A',
|
|
1539
|
-
price: 20,
|
|
1540
|
-
usageType: 'metered',
|
|
1541
|
-
type: 'extra_user'
|
|
1542
|
-
},
|
|
1543
|
-
additionalAgent: {
|
|
1544
|
-
id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6',
|
|
1545
|
-
price: 16,
|
|
1546
|
-
usageType: 'metered',
|
|
1547
|
-
type: 'extra_user'
|
|
1548
|
-
},
|
|
1549
|
-
additionalPro: {
|
|
1550
|
-
id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN',
|
|
1551
|
-
price: 12,
|
|
1552
|
-
usageType: 'metered',
|
|
1553
|
-
type: 'extra_user'
|
|
1554
|
-
},
|
|
1555
|
-
additionalSeller: {
|
|
1556
|
-
id: 'price_1KMrqsLFzcsAA7x61NRR9gne',
|
|
1557
|
-
price: 8,
|
|
1558
|
-
usageType: 'metered',
|
|
1559
|
-
type: 'extra_user'
|
|
1560
|
-
}
|
|
1561
|
-
} // prices: {
|
|
1562
|
-
// monthly: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
|
|
1563
|
-
// additionalUser: 'price_1KMrqrLFzcsAA7x6cu3it43A',
|
|
1564
|
-
// },
|
|
1565
|
-
// additionalUserPrice: 20,
|
|
1566
|
-
|
|
1567
|
-
},
|
|
1568
|
-
test_3: {
|
|
1569
|
-
id: 'prod_L2xnCHGi6QNgX8',
|
|
1570
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1571
|
-
tariffs: {
|
|
1572
|
-
base: {
|
|
1573
|
-
id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
|
|
1574
|
-
price: 80,
|
|
1575
|
-
usageType: 'licensed',
|
|
1576
|
-
type: 'base'
|
|
1577
|
-
}
|
|
1578
|
-
} // prices: {
|
|
1579
|
-
// monthly: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
|
|
1580
|
-
// additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1581
|
-
// },
|
|
1582
|
-
// additionalUserPrice: 10,
|
|
1583
|
-
|
|
1584
|
-
},
|
|
1585
|
-
test_4: {
|
|
1586
|
-
id: 'prod_L2yWF4ssugw8Ln',
|
|
1587
|
-
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1588
|
-
tariffs: {
|
|
1589
|
-
base: {
|
|
1590
|
-
id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
|
|
1591
|
-
price: 65,
|
|
1592
|
-
usageType: 'licensed',
|
|
1593
|
-
type: 'base'
|
|
1594
|
-
},
|
|
1595
|
-
additionalAdmin: {
|
|
1596
|
-
id: 'price_1KMsZFLFzcsAA7x6EjaDfica',
|
|
1597
|
-
price: 15,
|
|
1598
|
-
usageType: 'metered',
|
|
1599
|
-
type: 'extra_user'
|
|
1600
|
-
},
|
|
1601
|
-
additionalAgent: {
|
|
1602
|
-
id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4',
|
|
1603
|
-
price: 12,
|
|
1604
|
-
usageType: 'metered',
|
|
1605
|
-
type: 'extra_user'
|
|
1606
|
-
},
|
|
1607
|
-
additionalPro: {
|
|
1608
|
-
id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND',
|
|
1609
|
-
price: 9,
|
|
1610
|
-
usageType: 'metered',
|
|
1611
|
-
type: 'extra_user'
|
|
1612
|
-
},
|
|
1613
|
-
additionalSeller: {
|
|
1614
|
-
id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW',
|
|
1615
|
-
price: 6,
|
|
1616
|
-
usageType: 'metered',
|
|
1617
|
-
type: 'extra_user'
|
|
1618
|
-
}
|
|
1619
|
-
} // prices: {
|
|
1620
|
-
// monthly: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
|
|
1621
|
-
// additionalUser: 'price_1KMsZFLFzcsAA7x6EjaDfica',
|
|
1622
|
-
// },
|
|
1623
|
-
// additionalUserPrice: 15,
|
|
1302
|
+
}
|
|
1303
|
+
} // standard: {
|
|
1304
|
+
// id: 'prod_HsAwETfIUblsAT',
|
|
1305
|
+
// tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1306
|
+
// tariffs: {
|
|
1307
|
+
// base: { id: 'price_1HIQaILFzcsAA7x6NVk3cJu1', price: 69, usageType: 'licensed', type: 'base' },
|
|
1308
|
+
// },
|
|
1309
|
+
// },
|
|
1310
|
+
// plus: {
|
|
1311
|
+
// id: 'prod_HsB2YJPEZ9H98c',
|
|
1312
|
+
// tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
|
|
1313
|
+
// tariffs: {
|
|
1314
|
+
// base: { id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv', price: 159, usageType: 'licensed', type: 'base' },
|
|
1315
|
+
// },
|
|
1316
|
+
// },
|
|
1317
|
+
// test_1: {
|
|
1318
|
+
// id: 'prod_L2ZqDUzF0HFuFN',
|
|
1319
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1320
|
+
// tariffs: {
|
|
1321
|
+
// base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
|
|
1322
|
+
// additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
|
|
1323
|
+
// additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1324
|
+
// additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1325
|
+
// additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
|
|
1326
|
+
// },
|
|
1327
|
+
// },
|
|
1328
|
+
// test_2: {
|
|
1329
|
+
// id: 'prod_L2xmEk7gqqRJtS',
|
|
1330
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1331
|
+
// tariffs: {
|
|
1332
|
+
// base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
|
|
1333
|
+
// additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
|
|
1334
|
+
// additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
|
|
1335
|
+
// additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1336
|
+
// additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
|
|
1337
|
+
// },
|
|
1338
|
+
// },
|
|
1339
|
+
// test_3: {
|
|
1340
|
+
// id: 'prod_L2xnCHGi6QNgX8',
|
|
1341
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1342
|
+
// tariffs: {
|
|
1343
|
+
// base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
|
|
1344
|
+
// },
|
|
1345
|
+
// },
|
|
1346
|
+
// test_4: {
|
|
1347
|
+
// id: 'prod_L2yWF4ssugw8Ln',
|
|
1348
|
+
// tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1349
|
+
// tariffs: {
|
|
1350
|
+
// base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
|
|
1351
|
+
// additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
|
|
1352
|
+
// additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
|
|
1353
|
+
// additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
|
|
1354
|
+
// additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
|
|
1355
|
+
// },
|
|
1356
|
+
// },
|
|
1624
1357
|
|
|
1625
|
-
}
|
|
1626
1358
|
};
|
|
1627
1359
|
/**
|
|
1628
1360
|
*
|
|
@@ -1634,7 +1366,6 @@ var index$1 = (function (envName) {
|
|
|
1634
1366
|
return createProducts(testing);
|
|
1635
1367
|
});
|
|
1636
1368
|
|
|
1637
|
-
// @eslint-ignore
|
|
1638
1369
|
var ROLE;
|
|
1639
1370
|
|
|
1640
1371
|
(function (ROLE) {
|
|
@@ -1652,6 +1383,8 @@ var DevisHistoryType;
|
|
|
1652
1383
|
(function (DevisHistoryType) {
|
|
1653
1384
|
DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
1654
1385
|
DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
|
|
1386
|
+
DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
|
|
1387
|
+
DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
|
|
1655
1388
|
})(DevisHistoryType || (DevisHistoryType = {}));
|
|
1656
1389
|
|
|
1657
1390
|
var MaterialsProviderType;
|
|
@@ -2056,6 +1789,7 @@ var EmailTemplate;
|
|
|
2056
1789
|
EmailTemplate["USER_CONTACT"] = "user-contact";
|
|
2057
1790
|
EmailTemplate["PLAN"] = "plan";
|
|
2058
1791
|
EmailTemplate["BILL"] = "bill";
|
|
1792
|
+
EmailTemplate["MEDIAS"] = "medias";
|
|
2059
1793
|
})(EmailTemplate || (EmailTemplate = {}));
|
|
2060
1794
|
|
|
2061
1795
|
var DevisPdfType;
|
|
@@ -2114,6 +1848,9 @@ var HistoryActionEnum;
|
|
|
2114
1848
|
HistoryActionEnum["ASSIGN_SELLER"] = "ASSIGN_SELLER";
|
|
2115
1849
|
HistoryActionEnum["UNASSIGN_SELLER"] = "UNASSIGN_SELLER";
|
|
2116
1850
|
HistoryActionEnum["APPROVED_R_V"] = "APPROVED_R_V";
|
|
1851
|
+
HistoryActionEnum["DEVIS_APPROVED"] = "DEVIS_APPROVED";
|
|
1852
|
+
HistoryActionEnum["DEVIS_SENT"] = "DEVIS_SENT";
|
|
1853
|
+
HistoryActionEnum["DEVIS_SIGNED"] = "DEVIS_SIGNED";
|
|
2117
1854
|
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
2118
1855
|
|
|
2119
1856
|
var HistoryEntityType;
|
|
@@ -2141,12 +1878,13 @@ var NomenclaturesIdentifier;
|
|
|
2141
1878
|
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
2142
1879
|
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
2143
1880
|
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
2144
|
-
NomenclaturesIdentifier["
|
|
1881
|
+
NomenclaturesIdentifier["MARGINS"] = "MARGINS";
|
|
2145
1882
|
NomenclaturesIdentifier["TERMS_OF_SALE"] = "TERMS_OF_SALE";
|
|
2146
1883
|
NomenclaturesIdentifier["NOTES_MODELS"] = "NOTES_MODELS";
|
|
2147
1884
|
NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
|
|
2148
1885
|
NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
|
|
2149
1886
|
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1887
|
+
NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
|
|
2150
1888
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
2151
1889
|
|
|
2152
1890
|
var OperationQuantityEnum;
|
|
@@ -2175,6 +1913,7 @@ var MaterialResponsible;
|
|
|
2175
1913
|
MaterialResponsible["AGENT"] = "AGENT";
|
|
2176
1914
|
MaterialResponsible["SELLER"] = "SELLER";
|
|
2177
1915
|
MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
|
|
1916
|
+
MaterialResponsible["PROVIDER"] = "PROVIDER";
|
|
2178
1917
|
})(MaterialResponsible || (MaterialResponsible = {}));
|
|
2179
1918
|
|
|
2180
1919
|
var ProjectPriceTypeEnum;
|