@placeshakr/config 10.19.0 → 10.19.6-alpha.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 +525 -54
- 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 +525 -54
- 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 +5 -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/plans/base.d.ts.map +1 -1
- package/dist/plans/index.d.ts.map +1 -1
- package/dist/plans/types.d.ts +43 -121
- package/dist/plans/types.d.ts.map +1 -1
- package/dist/types.d.ts +101 -39
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +21 -9
- package/src/environment/decorators.ts +2 -0
- package/src/environment/types.ts +6 -1
- package/src/helpers/index.ts +5 -1
- package/src/plans/base.ts +151 -6
- package/src/plans/index.ts +148 -28
- package/src/plans/types.ts +31 -51
- package/src/types.ts +139 -57
|
@@ -159,7 +159,9 @@ var productionEnvironment = {
|
|
|
159
159
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
|
|
160
160
|
indexes: 'enterprises/{enterpriseId}/indexes',
|
|
161
161
|
notifications: 'enterprises/{enterpriseId}/notifications',
|
|
162
|
-
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
|
|
162
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
|
|
163
|
+
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
|
|
164
|
+
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups'
|
|
163
165
|
},
|
|
164
166
|
docs: {
|
|
165
167
|
user: 'users/{userId}',
|
|
@@ -201,7 +203,9 @@ var productionEnvironment = {
|
|
|
201
203
|
history: 'enterprises/{enterpriseId}/histories/{historyId}',
|
|
202
204
|
receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
|
|
203
205
|
notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
|
|
204
|
-
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
|
|
206
|
+
nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
|
|
207
|
+
operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
|
|
208
|
+
operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}'
|
|
205
209
|
},
|
|
206
210
|
indexes: {
|
|
207
211
|
users: 'users',
|
|
@@ -240,6 +244,7 @@ var productionEnvironment = {
|
|
|
240
244
|
categories: 'categories',
|
|
241
245
|
operationsCatalogs: 'operations-catalogs',
|
|
242
246
|
nomenclatures: 'nomenclatures',
|
|
247
|
+
operationsGroups: 'operations-groups',
|
|
243
248
|
// used only for managment
|
|
244
249
|
systemMaterials: 'system-materials',
|
|
245
250
|
systemOperations: 'system-operations',
|
|
@@ -313,14 +318,14 @@ var productionEnvironment = {
|
|
|
313
318
|
},
|
|
314
319
|
materials: {
|
|
315
320
|
searchableAttributes: ['name', 'unitPrice', 'provider'],
|
|
316
|
-
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)'],
|
|
321
|
+
attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'discount.id'],
|
|
317
322
|
ranking: ['asc(name)'],
|
|
318
323
|
maxValuesPerFacet: 1000,
|
|
319
324
|
maxFacetHits: 100
|
|
320
325
|
},
|
|
321
326
|
operations: {
|
|
322
327
|
searchableAttributes: ['name', 'unitPrice', 'objectID'],
|
|
323
|
-
attributesForFaceting: ['searchable(
|
|
328
|
+
attributesForFaceting: ['searchable(lot)', 'unitPrice', 'searchable(scope)', 'catalogId'],
|
|
324
329
|
maxValuesPerFacet: 1000,
|
|
325
330
|
maxFacetHits: 100
|
|
326
331
|
},
|
|
@@ -361,7 +366,7 @@ var productionEnvironment = {
|
|
|
361
366
|
},
|
|
362
367
|
devis: {
|
|
363
368
|
searchableAttributes: ['name', 'status'],
|
|
364
|
-
attributesForFaceting: ['searchable(status)', 'projectId', 'searchable(scope)'],
|
|
369
|
+
attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
|
|
365
370
|
ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
|
|
366
371
|
maxValuesPerFacet: 1000,
|
|
367
372
|
maxFacetHits: 100
|
|
@@ -442,7 +447,7 @@ var productionEnvironment = {
|
|
|
442
447
|
},
|
|
443
448
|
systemOperations: {
|
|
444
449
|
searchableAttributes: ['name', 'unitPrice'],
|
|
445
|
-
attributesForFaceting: ['searchable(
|
|
450
|
+
attributesForFaceting: ['searchable(lot)'],
|
|
446
451
|
ranking: ['desc(updatedAt)'],
|
|
447
452
|
maxValuesPerFacet: 1000,
|
|
448
453
|
maxFacetHits: 100
|
|
@@ -482,7 +487,7 @@ var productionEnvironment = {
|
|
|
482
487
|
},
|
|
483
488
|
devisTemplates: {
|
|
484
489
|
searchableAttributes: ['name'],
|
|
485
|
-
attributesForFaceting: ['searchable(scope)', '
|
|
490
|
+
attributesForFaceting: ['searchable(scope)', 'materialsProvider'],
|
|
486
491
|
ranking: ['desc(updatedAt)'],
|
|
487
492
|
maxValuesPerFacet: 1000,
|
|
488
493
|
maxFacetHits: 100
|
|
@@ -527,6 +532,13 @@ var productionEnvironment = {
|
|
|
527
532
|
ranking: ['asc(value)'],
|
|
528
533
|
maxValuesPerFacet: 1000,
|
|
529
534
|
maxFacetHits: 100
|
|
535
|
+
},
|
|
536
|
+
operationsGroups: {
|
|
537
|
+
searchableAttributes: ['name'],
|
|
538
|
+
attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(operationsCatalog)'],
|
|
539
|
+
ranking: ['asc(name)'],
|
|
540
|
+
maxValuesPerFacet: 1000,
|
|
541
|
+
maxFacetHits: 100
|
|
530
542
|
}
|
|
531
543
|
}
|
|
532
544
|
};
|
|
@@ -603,6 +615,7 @@ var test = function test(base) {
|
|
|
603
615
|
receptionVouchers: 'emulator-projects-reception-vouchers',
|
|
604
616
|
operationsCatalogs: 'operations-catalogs',
|
|
605
617
|
nomenclatures: 'nomenclatures',
|
|
618
|
+
operationsGroups: 'operations-groups',
|
|
606
619
|
// used only for managment
|
|
607
620
|
systemMaterials: 'system-materials',
|
|
608
621
|
systemOperations: 'system-operations',
|
|
@@ -658,6 +671,7 @@ var emulator = function emulator(base) {
|
|
|
658
671
|
receptionVouchers: 'emulator-projects-reception-vouchers',
|
|
659
672
|
operationsCatalogs: 'operations-catalogs',
|
|
660
673
|
nomenclatures: 'nomenclatures',
|
|
674
|
+
operationsGroups: 'operations-groups',
|
|
661
675
|
// used only for managment
|
|
662
676
|
systemMaterials: 'system-materials',
|
|
663
677
|
systemOperations: 'system-operations',
|
|
@@ -756,7 +770,9 @@ var helpers = {
|
|
|
756
770
|
downPayment: /*#__PURE__*/FactoryCreateFunction(),
|
|
757
771
|
histories: /*#__PURE__*/FactoryCreateFunction(),
|
|
758
772
|
receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
|
|
759
|
-
nomenclatures: /*#__PURE__*/FactoryCreateFunction()
|
|
773
|
+
nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
|
|
774
|
+
operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
|
|
775
|
+
operationsGroups: /*#__PURE__*/FactoryCreateFunction()
|
|
760
776
|
};
|
|
761
777
|
|
|
762
778
|
/**
|
|
@@ -938,9 +954,9 @@ var createProducts = function createProducts(params) {
|
|
|
938
954
|
}),
|
|
939
955
|
tax_rates: params.standard.tax_rates
|
|
940
956
|
},
|
|
941
|
-
tariffs: params.standard.tariffs,
|
|
942
|
-
|
|
943
|
-
|
|
957
|
+
tariffs: params.standard.tariffs // additionalUser: params.standard.prices.additionalUser,
|
|
958
|
+
// additionalUserPrice: params.standard.additionalUserPrice,
|
|
959
|
+
|
|
944
960
|
},
|
|
945
961
|
plus: {
|
|
946
962
|
id: params.plus.id,
|
|
@@ -976,9 +992,9 @@ var createProducts = function createProducts(params) {
|
|
|
976
992
|
}),
|
|
977
993
|
tax_rates: params.plus.tax_rates
|
|
978
994
|
},
|
|
979
|
-
tariffs: params.plus.tariffs,
|
|
980
|
-
|
|
981
|
-
|
|
995
|
+
tariffs: params.plus.tariffs // additionalUser: params.plus.prices.additionalUser,
|
|
996
|
+
// additionalUserPrice: params.plus.additionalUserPrice,
|
|
997
|
+
|
|
982
998
|
},
|
|
983
999
|
classic: {
|
|
984
1000
|
id: params.classic.id,
|
|
@@ -991,6 +1007,7 @@ var createProducts = function createProducts(params) {
|
|
|
991
1007
|
price: 159,
|
|
992
1008
|
main: true,
|
|
993
1009
|
active: true,
|
|
1010
|
+
isPrivate: true,
|
|
994
1011
|
rating: 3,
|
|
995
1012
|
order: 3,
|
|
996
1013
|
includes: {
|
|
@@ -1013,9 +1030,161 @@ var createProducts = function createProducts(params) {
|
|
|
1013
1030
|
}),
|
|
1014
1031
|
tax_rates: params.classic.tax_rates
|
|
1015
1032
|
},
|
|
1016
|
-
tariffs: params.classic.tariffs,
|
|
1017
|
-
|
|
1018
|
-
|
|
1033
|
+
tariffs: params.classic.tariffs // additionalUser: params.classic.prices.additionalUser,
|
|
1034
|
+
// additionalUserPrice: params.classic.additionalUserPrice,
|
|
1035
|
+
|
|
1036
|
+
},
|
|
1037
|
+
test_1: {
|
|
1038
|
+
id: params.test_1.id,
|
|
1039
|
+
internal: 'test_1',
|
|
1040
|
+
product: {
|
|
1041
|
+
id: params.test_1.id,
|
|
1042
|
+
name: 'Test 1',
|
|
1043
|
+
description: '',
|
|
1044
|
+
type: 'service',
|
|
1045
|
+
price: 50,
|
|
1046
|
+
main: true,
|
|
1047
|
+
active: true,
|
|
1048
|
+
isPrivate: false,
|
|
1049
|
+
rating: 1,
|
|
1050
|
+
order: 4,
|
|
1051
|
+
includes: {
|
|
1052
|
+
maxAdminUsers: 1,
|
|
1053
|
+
maxAgentUsers: 0,
|
|
1054
|
+
maxProUsers: 0,
|
|
1055
|
+
maxSellerUsers: 0,
|
|
1056
|
+
authorizationManagement: true,
|
|
1057
|
+
dashboard: true,
|
|
1058
|
+
accounting: true,
|
|
1059
|
+
projectStorage: true,
|
|
1060
|
+
customCatalog: true,
|
|
1061
|
+
customConfig: true,
|
|
1062
|
+
exportReports: true,
|
|
1063
|
+
externalApiIntegration: true,
|
|
1064
|
+
support: true
|
|
1065
|
+
},
|
|
1066
|
+
plans: Object.values(params.test_1.tariffs).map(function (t) {
|
|
1067
|
+
return t.id;
|
|
1068
|
+
}),
|
|
1069
|
+
tax_rates: params.test_1.tax_rates
|
|
1070
|
+
},
|
|
1071
|
+
tariffs: params.test_1.tariffs // additionalUser: params.test_1.prices.additionalUser,
|
|
1072
|
+
// additionalUserPrice: params.test_1.additionalUserPrice,
|
|
1073
|
+
|
|
1074
|
+
},
|
|
1075
|
+
test_2: {
|
|
1076
|
+
id: params.test_2.id,
|
|
1077
|
+
internal: 'test_2',
|
|
1078
|
+
product: {
|
|
1079
|
+
id: params.test_2.id,
|
|
1080
|
+
name: 'Test 2',
|
|
1081
|
+
description: '',
|
|
1082
|
+
type: 'service',
|
|
1083
|
+
price: 100,
|
|
1084
|
+
main: true,
|
|
1085
|
+
active: true,
|
|
1086
|
+
isPrivate: false,
|
|
1087
|
+
rating: 2,
|
|
1088
|
+
order: 5,
|
|
1089
|
+
includes: {
|
|
1090
|
+
maxAdminUsers: 1,
|
|
1091
|
+
maxAgentUsers: 0,
|
|
1092
|
+
maxProUsers: 0,
|
|
1093
|
+
maxSellerUsers: 0,
|
|
1094
|
+
authorizationManagement: true,
|
|
1095
|
+
dashboard: true,
|
|
1096
|
+
accounting: true,
|
|
1097
|
+
projectStorage: true,
|
|
1098
|
+
customCatalog: true,
|
|
1099
|
+
customConfig: true,
|
|
1100
|
+
exportReports: true,
|
|
1101
|
+
externalApiIntegration: true,
|
|
1102
|
+
support: true
|
|
1103
|
+
},
|
|
1104
|
+
plans: Object.values(params.test_2.tariffs).map(function (t) {
|
|
1105
|
+
return t.id;
|
|
1106
|
+
}),
|
|
1107
|
+
tax_rates: params.test_2.tax_rates
|
|
1108
|
+
},
|
|
1109
|
+
tariffs: params.test_2.tariffs // additionalUser: params.test_2.prices.additionalUser,
|
|
1110
|
+
// additionalUserPrice: params.test_2.additionalUserPrice,
|
|
1111
|
+
|
|
1112
|
+
},
|
|
1113
|
+
test_3: {
|
|
1114
|
+
id: params.test_3.id,
|
|
1115
|
+
internal: 'test_3',
|
|
1116
|
+
product: {
|
|
1117
|
+
id: params.test_3.id,
|
|
1118
|
+
name: 'Test 3',
|
|
1119
|
+
description: '',
|
|
1120
|
+
type: 'service',
|
|
1121
|
+
price: 80,
|
|
1122
|
+
main: true,
|
|
1123
|
+
active: true,
|
|
1124
|
+
isPrivate: false,
|
|
1125
|
+
rating: 3,
|
|
1126
|
+
order: 6,
|
|
1127
|
+
includes: {
|
|
1128
|
+
maxAdminUsers: null,
|
|
1129
|
+
maxAgentUsers: null,
|
|
1130
|
+
maxProUsers: null,
|
|
1131
|
+
maxSellerUsers: null,
|
|
1132
|
+
authorizationManagement: true,
|
|
1133
|
+
dashboard: true,
|
|
1134
|
+
accounting: true,
|
|
1135
|
+
projectStorage: true,
|
|
1136
|
+
customCatalog: true,
|
|
1137
|
+
customConfig: true,
|
|
1138
|
+
exportReports: true,
|
|
1139
|
+
externalApiIntegration: true,
|
|
1140
|
+
support: true
|
|
1141
|
+
},
|
|
1142
|
+
plans: Object.values(params.test_3.tariffs).map(function (t) {
|
|
1143
|
+
return t.id;
|
|
1144
|
+
}),
|
|
1145
|
+
tax_rates: params.test_3.tax_rates
|
|
1146
|
+
},
|
|
1147
|
+
tariffs: params.test_3.tariffs // additionalUser: params.test_3.prices.additionalUser,
|
|
1148
|
+
// additionalUserPrice: params.test_3.additionalUserPrice,
|
|
1149
|
+
|
|
1150
|
+
},
|
|
1151
|
+
test_4: {
|
|
1152
|
+
id: params.test_4.id,
|
|
1153
|
+
internal: 'test_4',
|
|
1154
|
+
product: {
|
|
1155
|
+
id: params.test_4.id,
|
|
1156
|
+
name: 'Test 4',
|
|
1157
|
+
description: '',
|
|
1158
|
+
type: 'service',
|
|
1159
|
+
price: 65,
|
|
1160
|
+
main: true,
|
|
1161
|
+
active: true,
|
|
1162
|
+
isPrivate: false,
|
|
1163
|
+
rating: 3,
|
|
1164
|
+
order: 7,
|
|
1165
|
+
includes: {
|
|
1166
|
+
maxAdminUsers: 3,
|
|
1167
|
+
maxAgentUsers: 3,
|
|
1168
|
+
maxProUsers: 3,
|
|
1169
|
+
maxSellerUsers: 3,
|
|
1170
|
+
authorizationManagement: true,
|
|
1171
|
+
dashboard: true,
|
|
1172
|
+
accounting: true,
|
|
1173
|
+
projectStorage: true,
|
|
1174
|
+
customCatalog: true,
|
|
1175
|
+
customConfig: true,
|
|
1176
|
+
exportReports: true,
|
|
1177
|
+
externalApiIntegration: true,
|
|
1178
|
+
support: true
|
|
1179
|
+
},
|
|
1180
|
+
plans: Object.values(params.test_4.tariffs).map(function (t) {
|
|
1181
|
+
return t.id;
|
|
1182
|
+
}),
|
|
1183
|
+
tax_rates: params.test_4.tax_rates
|
|
1184
|
+
},
|
|
1185
|
+
tariffs: params.test_4.tariffs // additionalUser: params.test_4.prices.additionalUser,
|
|
1186
|
+
// additionalUserPrice: params.test_4.additionalUserPrice,
|
|
1187
|
+
|
|
1019
1188
|
}
|
|
1020
1189
|
};
|
|
1021
1190
|
return products;
|
|
@@ -1032,12 +1201,12 @@ var testing = {
|
|
|
1032
1201
|
usageType: 'licensed',
|
|
1033
1202
|
type: 'base'
|
|
1034
1203
|
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1204
|
+
} // prices: {
|
|
1205
|
+
// monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
|
|
1206
|
+
// additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
|
|
1207
|
+
// },
|
|
1208
|
+
// additionalUserPrice: 10,
|
|
1209
|
+
|
|
1041
1210
|
},
|
|
1042
1211
|
plus: {
|
|
1043
1212
|
id: 'prod_KzmyY1ysEOeK93',
|
|
@@ -1049,12 +1218,12 @@ var testing = {
|
|
|
1049
1218
|
usageType: 'licensed',
|
|
1050
1219
|
type: 'base'
|
|
1051
1220
|
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1221
|
+
} // prices: {
|
|
1222
|
+
// monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
|
|
1223
|
+
// additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX',
|
|
1224
|
+
// },
|
|
1225
|
+
// additionalUserPrice: 5,
|
|
1226
|
+
|
|
1058
1227
|
},
|
|
1059
1228
|
classic: {
|
|
1060
1229
|
id: 'prod_KzmO4rORyWl8cA',
|
|
@@ -1090,12 +1259,152 @@ var testing = {
|
|
|
1090
1259
|
usageType: 'metered',
|
|
1091
1260
|
type: 'extra_user'
|
|
1092
1261
|
}
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1262
|
+
} // prices: {
|
|
1263
|
+
// monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
|
|
1264
|
+
// additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
|
|
1265
|
+
// },
|
|
1266
|
+
// additionalUserPrice: 30,
|
|
1267
|
+
|
|
1268
|
+
},
|
|
1269
|
+
test_1: {
|
|
1270
|
+
id: 'prod_L2ZqDUzF0HFuFN',
|
|
1271
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1272
|
+
tariffs: {
|
|
1273
|
+
base: {
|
|
1274
|
+
id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
|
|
1275
|
+
price: 50,
|
|
1276
|
+
usageType: 'licensed',
|
|
1277
|
+
type: 'base'
|
|
1278
|
+
},
|
|
1279
|
+
additionalAdmin: {
|
|
1280
|
+
id: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1281
|
+
price: 10,
|
|
1282
|
+
usageType: 'metered',
|
|
1283
|
+
type: 'extra_user'
|
|
1284
|
+
},
|
|
1285
|
+
additionalAgent: {
|
|
1286
|
+
id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM',
|
|
1287
|
+
price: 8,
|
|
1288
|
+
usageType: 'metered',
|
|
1289
|
+
type: 'extra_user'
|
|
1290
|
+
},
|
|
1291
|
+
additionalPro: {
|
|
1292
|
+
id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2',
|
|
1293
|
+
price: 6,
|
|
1294
|
+
usageType: 'metered',
|
|
1295
|
+
type: 'extra_user'
|
|
1296
|
+
},
|
|
1297
|
+
additionalSeller: {
|
|
1298
|
+
id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS',
|
|
1299
|
+
price: 4,
|
|
1300
|
+
usageType: 'metered',
|
|
1301
|
+
type: 'extra_user'
|
|
1302
|
+
}
|
|
1303
|
+
} // prices: {
|
|
1304
|
+
// monthly: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
|
|
1305
|
+
// additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1306
|
+
// },
|
|
1307
|
+
// additionalUserPrice: 10,
|
|
1308
|
+
|
|
1309
|
+
},
|
|
1310
|
+
test_2: {
|
|
1311
|
+
id: 'prod_L2xmEk7gqqRJtS',
|
|
1312
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1313
|
+
tariffs: {
|
|
1314
|
+
base: {
|
|
1315
|
+
id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
|
|
1316
|
+
price: 100,
|
|
1317
|
+
usageType: 'licensed',
|
|
1318
|
+
type: 'base'
|
|
1319
|
+
},
|
|
1320
|
+
additionalAdmin: {
|
|
1321
|
+
id: 'price_1KMrqrLFzcsAA7x6cu3it43A',
|
|
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,
|
|
1407
|
+
|
|
1099
1408
|
}
|
|
1100
1409
|
};
|
|
1101
1410
|
var production = {
|
|
@@ -1109,12 +1418,12 @@ var production = {
|
|
|
1109
1418
|
usageType: 'licensed',
|
|
1110
1419
|
type: 'base'
|
|
1111
1420
|
}
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1421
|
+
} // prices: {
|
|
1422
|
+
// monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
|
|
1423
|
+
// additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr',
|
|
1424
|
+
// },
|
|
1425
|
+
// additionalUserPrice: 10,
|
|
1426
|
+
|
|
1118
1427
|
},
|
|
1119
1428
|
plus: {
|
|
1120
1429
|
id: 'prod_HsB2YJPEZ9H98c',
|
|
@@ -1126,12 +1435,12 @@ var production = {
|
|
|
1126
1435
|
usageType: 'licensed',
|
|
1127
1436
|
type: 'base'
|
|
1128
1437
|
}
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1438
|
+
} // prices: {
|
|
1439
|
+
// monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
|
|
1440
|
+
// additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6',
|
|
1441
|
+
// },
|
|
1442
|
+
// additionalUserPrice: 5,
|
|
1443
|
+
|
|
1135
1444
|
},
|
|
1136
1445
|
classic: {
|
|
1137
1446
|
id: 'prod_KzmYFhrWXrzWdR',
|
|
@@ -1167,12 +1476,152 @@ var production = {
|
|
|
1167
1476
|
usageType: 'metered',
|
|
1168
1477
|
type: 'extra_user'
|
|
1169
1478
|
}
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1479
|
+
} // prices: {
|
|
1480
|
+
// monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
|
|
1481
|
+
// additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
|
|
1482
|
+
// },
|
|
1483
|
+
// additionalUserPrice: 30,
|
|
1484
|
+
|
|
1485
|
+
},
|
|
1486
|
+
test_1: {
|
|
1487
|
+
id: 'prod_L2ZqDUzF0HFuFN',
|
|
1488
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1489
|
+
tariffs: {
|
|
1490
|
+
base: {
|
|
1491
|
+
id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
|
|
1492
|
+
price: 50,
|
|
1493
|
+
usageType: 'licensed',
|
|
1494
|
+
type: 'base'
|
|
1495
|
+
},
|
|
1496
|
+
additionalAdmin: {
|
|
1497
|
+
id: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1498
|
+
price: 10,
|
|
1499
|
+
usageType: 'metered',
|
|
1500
|
+
type: 'extra_user'
|
|
1501
|
+
},
|
|
1502
|
+
additionalAgent: {
|
|
1503
|
+
id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM',
|
|
1504
|
+
price: 8,
|
|
1505
|
+
usageType: 'metered',
|
|
1506
|
+
type: 'extra_user'
|
|
1507
|
+
},
|
|
1508
|
+
additionalPro: {
|
|
1509
|
+
id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2',
|
|
1510
|
+
price: 6,
|
|
1511
|
+
usageType: 'metered',
|
|
1512
|
+
type: 'extra_user'
|
|
1513
|
+
},
|
|
1514
|
+
additionalSeller: {
|
|
1515
|
+
id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS',
|
|
1516
|
+
price: 4,
|
|
1517
|
+
usageType: 'metered',
|
|
1518
|
+
type: 'extra_user'
|
|
1519
|
+
}
|
|
1520
|
+
} // prices: {
|
|
1521
|
+
// monthly: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
|
|
1522
|
+
// additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
|
|
1523
|
+
// },
|
|
1524
|
+
// additionalUserPrice: 10,
|
|
1525
|
+
|
|
1526
|
+
},
|
|
1527
|
+
test_2: {
|
|
1528
|
+
id: 'prod_L2xmEk7gqqRJtS',
|
|
1529
|
+
tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
|
|
1530
|
+
tariffs: {
|
|
1531
|
+
base: {
|
|
1532
|
+
id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
|
|
1533
|
+
price: 100,
|
|
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,
|
|
1624
|
+
|
|
1176
1625
|
}
|
|
1177
1626
|
};
|
|
1178
1627
|
/**
|
|
@@ -1198,6 +1647,13 @@ var ROLE;
|
|
|
1198
1647
|
ROLE["SUPERADMIN"] = "superadmin";
|
|
1199
1648
|
})(ROLE || (ROLE = {}));
|
|
1200
1649
|
|
|
1650
|
+
var DevisHistoryType;
|
|
1651
|
+
|
|
1652
|
+
(function (DevisHistoryType) {
|
|
1653
|
+
DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
1654
|
+
DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
|
|
1655
|
+
})(DevisHistoryType || (DevisHistoryType = {}));
|
|
1656
|
+
|
|
1201
1657
|
var MaterialsProviderType;
|
|
1202
1658
|
|
|
1203
1659
|
(function (MaterialsProviderType) {
|
|
@@ -1685,6 +2141,12 @@ var NomenclaturesIdentifier;
|
|
|
1685
2141
|
NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
|
|
1686
2142
|
NomenclaturesIdentifier["TVA"] = "TVA";
|
|
1687
2143
|
NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
|
|
2144
|
+
NomenclaturesIdentifier["DISCOUNTS"] = "DISCOUNTS";
|
|
2145
|
+
NomenclaturesIdentifier["TERMS_OF_SALE"] = "TERMS_OF_SALE";
|
|
2146
|
+
NomenclaturesIdentifier["NOTES_MODELS"] = "NOTES_MODELS";
|
|
2147
|
+
NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
|
|
2148
|
+
NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
|
|
2149
|
+
NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
|
|
1688
2150
|
})(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
|
|
1689
2151
|
|
|
1690
2152
|
var OperationQuantityEnum;
|
|
@@ -1723,9 +2185,17 @@ var ProjectPriceTypeEnum;
|
|
|
1723
2185
|
ProjectPriceTypeEnum["rejected"] = "rejected";
|
|
1724
2186
|
})(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
|
|
1725
2187
|
|
|
2188
|
+
var DevisFormatEnum;
|
|
2189
|
+
|
|
2190
|
+
(function (DevisFormatEnum) {
|
|
2191
|
+
DevisFormatEnum["PIECE"] = "PIECE";
|
|
2192
|
+
DevisFormatEnum["LOT"] = "LOT";
|
|
2193
|
+
})(DevisFormatEnum || (DevisFormatEnum = {}));
|
|
2194
|
+
|
|
1726
2195
|
var types = {
|
|
1727
2196
|
__proto__: null,
|
|
1728
2197
|
get ROLE () { return ROLE; },
|
|
2198
|
+
get DevisHistoryType () { return DevisHistoryType; },
|
|
1729
2199
|
get MaterialsProviderType () { return MaterialsProviderType; },
|
|
1730
2200
|
get ProjectType () { return ProjectType; },
|
|
1731
2201
|
get OperationStatusEnum () { return OperationStatusEnum; },
|
|
@@ -1776,7 +2246,8 @@ var types = {
|
|
|
1776
2246
|
get OperationQuantityEnum () { return OperationQuantityEnum; },
|
|
1777
2247
|
get OperationRulesEnum () { return OperationRulesEnum; },
|
|
1778
2248
|
get MaterialResponsible () { return MaterialResponsible; },
|
|
1779
|
-
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; }
|
|
2249
|
+
get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
|
|
2250
|
+
get DevisFormatEnum () { return DevisFormatEnum; }
|
|
1780
2251
|
};
|
|
1781
2252
|
|
|
1782
2253
|
function isBuffer(obj) {
|