@deenruv/inpost-plugin 1.0.17-dev.18 → 1.0.17-dev.23
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/plugin-server/zeus/const.js +141 -3
- package/dist/plugin-server/zeus/index.d.ts +653 -6
- package/dist/plugin-server/zeus/index.js +29 -1
- package/dist/plugin-ui/zeus/const.js +141 -3
- package/dist/plugin-ui/zeus/index.d.ts +653 -6
- package/dist/plugin-ui/zeus/index.js +28 -0
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.MetricType = exports.MetricInterval = exports.OrderType = exports.LanguageCode = exports.HistoryEntryType = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.AssetType = exports.StockMovementType = exports.JobState = exports.$ = exports.GRAPHQL_TYPE_SEPARATOR = exports.START_VAR_NAME = exports.resolverFor = exports.InternalArgsBuilt = exports.ResolveFromPath = exports.purifyGraphQLKey = exports.PrepareScalarPaths = exports.GraphQLError = exports.SEPARATOR = exports.traverseResponse = exports.decodeScalarsInResponse = exports.fields = exports.ZeusScalars = exports.Gql = exports.TypeFromSelector = exports.Selector = exports.ZeusSelect = exports.Zeus = exports.Subscription = exports.SubscriptionThunder = exports.Chain = exports.Thunder = exports.InternalsBuildQuery = exports.apiFetch = exports.apiSubscription = exports.HEADERS = exports.HOST = void 0;
|
|
4
|
+
exports.MetricType = exports.MetricInterval = exports.ChartMetricType = exports.MetricIntervalType = exports.MetricRangeType = exports.OrderType = exports.LanguageCode = exports.HistoryEntryType = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.AssetType = exports.StockMovementType = exports.JobState = exports.$ = exports.GRAPHQL_TYPE_SEPARATOR = exports.START_VAR_NAME = exports.resolverFor = exports.InternalArgsBuilt = exports.ResolveFromPath = exports.purifyGraphQLKey = exports.PrepareScalarPaths = exports.GraphQLError = exports.SEPARATOR = exports.traverseResponse = exports.decodeScalarsInResponse = exports.fields = exports.ZeusScalars = exports.Gql = exports.TypeFromSelector = exports.Selector = exports.ZeusSelect = exports.Zeus = exports.Subscription = exports.SubscriptionThunder = exports.Chain = exports.Thunder = exports.InternalsBuildQuery = exports.apiFetch = exports.apiSubscription = exports.HEADERS = exports.HOST = void 0;
|
|
5
5
|
const const_js_1 = require("./const.js");
|
|
6
6
|
exports.HOST = "http://localhost:6100/admin-api";
|
|
7
7
|
exports.HEADERS = {};
|
|
@@ -1082,6 +1082,34 @@ var OrderType;
|
|
|
1082
1082
|
OrderType["Seller"] = "Seller";
|
|
1083
1083
|
OrderType["Aggregate"] = "Aggregate";
|
|
1084
1084
|
})(OrderType || (exports.OrderType = OrderType = {}));
|
|
1085
|
+
var MetricRangeType;
|
|
1086
|
+
(function (MetricRangeType) {
|
|
1087
|
+
MetricRangeType["Today"] = "Today";
|
|
1088
|
+
MetricRangeType["Yesterday"] = "Yesterday";
|
|
1089
|
+
MetricRangeType["ThisWeek"] = "ThisWeek";
|
|
1090
|
+
MetricRangeType["LastWeek"] = "LastWeek";
|
|
1091
|
+
MetricRangeType["ThisMonth"] = "ThisMonth";
|
|
1092
|
+
MetricRangeType["LastMonth"] = "LastMonth";
|
|
1093
|
+
MetricRangeType["ThisYear"] = "ThisYear";
|
|
1094
|
+
MetricRangeType["LastYear"] = "LastYear";
|
|
1095
|
+
MetricRangeType["FirstQuarter"] = "FirstQuarter";
|
|
1096
|
+
MetricRangeType["SecondQuarter"] = "SecondQuarter";
|
|
1097
|
+
MetricRangeType["ThirdQuarter"] = "ThirdQuarter";
|
|
1098
|
+
MetricRangeType["FourthQuarter"] = "FourthQuarter";
|
|
1099
|
+
MetricRangeType["Custom"] = "Custom";
|
|
1100
|
+
})(MetricRangeType || (exports.MetricRangeType = MetricRangeType = {}));
|
|
1101
|
+
var MetricIntervalType;
|
|
1102
|
+
(function (MetricIntervalType) {
|
|
1103
|
+
MetricIntervalType["Day"] = "Day";
|
|
1104
|
+
MetricIntervalType["Hour"] = "Hour";
|
|
1105
|
+
})(MetricIntervalType || (exports.MetricIntervalType = MetricIntervalType = {}));
|
|
1106
|
+
var ChartMetricType;
|
|
1107
|
+
(function (ChartMetricType) {
|
|
1108
|
+
ChartMetricType["OrderCount"] = "OrderCount";
|
|
1109
|
+
ChartMetricType["OrderTotal"] = "OrderTotal";
|
|
1110
|
+
ChartMetricType["AverageOrderValue"] = "AverageOrderValue";
|
|
1111
|
+
ChartMetricType["OrderTotalProductsCount"] = "OrderTotalProductsCount";
|
|
1112
|
+
})(ChartMetricType || (exports.ChartMetricType = ChartMetricType = {}));
|
|
1085
1113
|
var MetricInterval;
|
|
1086
1114
|
(function (MetricInterval) {
|
|
1087
1115
|
MetricInterval["Daily"] = "Daily";
|
|
@@ -114,6 +114,15 @@ export const AllTypesProps = {
|
|
|
114
114
|
options: "ZoneListOptions"
|
|
115
115
|
},
|
|
116
116
|
zone: {},
|
|
117
|
+
getMerchantPlatformSettings: {},
|
|
118
|
+
getMerchantPlatformInfo: {},
|
|
119
|
+
getMerchantSyncHistory: {},
|
|
120
|
+
chartMetric: {
|
|
121
|
+
input: "ChartMetricInput"
|
|
122
|
+
},
|
|
123
|
+
orderSummaryMetric: {
|
|
124
|
+
input: "OrderSummaryMetricInput"
|
|
125
|
+
},
|
|
117
126
|
getInpostOrganizations: {
|
|
118
127
|
input: "GetInpostOrganizationsInput"
|
|
119
128
|
},
|
|
@@ -475,6 +484,11 @@ export const AllTypesProps = {
|
|
|
475
484
|
deleteZones: {},
|
|
476
485
|
addMembersToZone: {},
|
|
477
486
|
removeMembersFromZone: {},
|
|
487
|
+
sendAllProductsToMerchantPlatform: {},
|
|
488
|
+
saveMerchantPlatformSettings: {
|
|
489
|
+
input: "SaveMerchantPlatformSettingInput"
|
|
490
|
+
},
|
|
491
|
+
removeOrphanItems: {},
|
|
478
492
|
setInpostShippingMethodConfig: {
|
|
479
493
|
input: "SetInpostShippingMethodConfigInput"
|
|
480
494
|
}
|
|
@@ -889,7 +903,8 @@ export const AllTypesProps = {
|
|
|
889
903
|
priceWithTax: "NumberOperators",
|
|
890
904
|
stockLevel: "StringOperators",
|
|
891
905
|
_and: "ProductVariantFilterParameter",
|
|
892
|
-
_or: "ProductVariantFilterParameter"
|
|
906
|
+
_or: "ProductVariantFilterParameter",
|
|
907
|
+
communicateID: "StringOperators"
|
|
893
908
|
},
|
|
894
909
|
ProductTranslationInput: {
|
|
895
910
|
languageCode: "LanguageCode",
|
|
@@ -1166,6 +1181,25 @@ export const AllTypesProps = {
|
|
|
1166
1181
|
},
|
|
1167
1182
|
LanguageCode: "enum",
|
|
1168
1183
|
OrderType: "enum",
|
|
1184
|
+
MerchantPlatformSettingInput: {},
|
|
1185
|
+
SaveMerchantPlatformSettingInput: {
|
|
1186
|
+
entries: "MerchantPlatformSettingInput"
|
|
1187
|
+
},
|
|
1188
|
+
MetricRangeType: "enum",
|
|
1189
|
+
MetricIntervalType: "enum",
|
|
1190
|
+
ChartMetricType: "enum",
|
|
1191
|
+
BetterMetricRangeInput: {
|
|
1192
|
+
start: "DateTime",
|
|
1193
|
+
end: "DateTime"
|
|
1194
|
+
},
|
|
1195
|
+
OrderSummaryMetricInput: {
|
|
1196
|
+
range: "BetterMetricRangeInput"
|
|
1197
|
+
},
|
|
1198
|
+
ChartMetricInput: {
|
|
1199
|
+
range: "BetterMetricRangeInput",
|
|
1200
|
+
interval: "MetricIntervalType",
|
|
1201
|
+
types: "ChartMetricType"
|
|
1202
|
+
},
|
|
1169
1203
|
SetInpostShippingMethodConfigInput: {},
|
|
1170
1204
|
GetInpostOrganizationsInput: {},
|
|
1171
1205
|
MetricInterval: "enum",
|
|
@@ -1279,7 +1313,8 @@ export const AllTypesProps = {
|
|
|
1279
1313
|
name: "SortOrder",
|
|
1280
1314
|
price: "SortOrder",
|
|
1281
1315
|
priceWithTax: "SortOrder",
|
|
1282
|
-
stockLevel: "SortOrder"
|
|
1316
|
+
stockLevel: "SortOrder",
|
|
1317
|
+
communicateID: "SortOrder"
|
|
1283
1318
|
},
|
|
1284
1319
|
CountryFilterParameter: {
|
|
1285
1320
|
id: "IDOperators",
|
|
@@ -1684,6 +1719,12 @@ export const ReturnTypes = {
|
|
|
1684
1719
|
taxRate: "TaxRate",
|
|
1685
1720
|
zones: "ZoneList",
|
|
1686
1721
|
zone: "Zone",
|
|
1722
|
+
getMerchantPlatformSettings: "MerchantPlatformSettingsEntity",
|
|
1723
|
+
getMerchantPlatformInfo: "MerchantPlatformInfo",
|
|
1724
|
+
getMerchantSyncHistory: "MerchantSyncRun",
|
|
1725
|
+
additionalOrderStates: "AdditionalOrderState",
|
|
1726
|
+
chartMetric: "ChartMetrics",
|
|
1727
|
+
orderSummaryMetric: "OrderSummaryMetrics",
|
|
1687
1728
|
getInpostConfig: "InpostConfig",
|
|
1688
1729
|
getInpostOrganizations: "InpostOrganizationResponse",
|
|
1689
1730
|
metricSummary: "MetricSummary"
|
|
@@ -1852,6 +1893,9 @@ export const ReturnTypes = {
|
|
|
1852
1893
|
deleteZones: "DeletionResponse",
|
|
1853
1894
|
addMembersToZone: "Zone",
|
|
1854
1895
|
removeMembersFromZone: "Zone",
|
|
1896
|
+
sendAllProductsToMerchantPlatform: "Boolean",
|
|
1897
|
+
saveMerchantPlatformSettings: "MerchantPlatformSettingsEntity",
|
|
1898
|
+
removeOrphanItems: "Boolean",
|
|
1855
1899
|
setInpostShippingMethodConfig: "Boolean"
|
|
1856
1900
|
},
|
|
1857
1901
|
Administrator: {
|
|
@@ -2407,7 +2451,7 @@ export const ReturnTypes = {
|
|
|
2407
2451
|
options: "ProductOption",
|
|
2408
2452
|
facetValues: "FacetValue",
|
|
2409
2453
|
translations: "ProductVariantTranslation",
|
|
2410
|
-
customFields: "
|
|
2454
|
+
customFields: "ProductVariantCustomFields"
|
|
2411
2455
|
},
|
|
2412
2456
|
SearchResult: {
|
|
2413
2457
|
enabled: "Boolean",
|
|
@@ -2809,6 +2853,7 @@ export const ReturnTypes = {
|
|
|
2809
2853
|
"...on User": "User",
|
|
2810
2854
|
"...on AuthenticationMethod": "AuthenticationMethod",
|
|
2811
2855
|
"...on Zone": "Zone",
|
|
2856
|
+
"...on MerchantPlatformSettingsEntity": "MerchantPlatformSettingsEntity",
|
|
2812
2857
|
id: "ID"
|
|
2813
2858
|
},
|
|
2814
2859
|
ErrorResult: {
|
|
@@ -3577,6 +3622,96 @@ export const ReturnTypes = {
|
|
|
3577
3622
|
members: "Region",
|
|
3578
3623
|
customFields: "JSON"
|
|
3579
3624
|
},
|
|
3625
|
+
MerchantPlatformSetting: {
|
|
3626
|
+
key: "String",
|
|
3627
|
+
value: "String"
|
|
3628
|
+
},
|
|
3629
|
+
MerchantPlatformSettingsEntity: {
|
|
3630
|
+
id: "ID",
|
|
3631
|
+
platform: "String",
|
|
3632
|
+
entries: "MerchantPlatformSetting"
|
|
3633
|
+
},
|
|
3634
|
+
MerchantPlatformInfo: {
|
|
3635
|
+
isValidConnection: "Boolean",
|
|
3636
|
+
productsCount: "Int",
|
|
3637
|
+
connectionStatus: "String",
|
|
3638
|
+
dataSourceVerified: "Boolean",
|
|
3639
|
+
checkedAt: "DateTime",
|
|
3640
|
+
latencyMs: "Int",
|
|
3641
|
+
disapprovedProductsCount: "Int",
|
|
3642
|
+
issuesCount: "Int",
|
|
3643
|
+
lastError: "MerchantPlatformError",
|
|
3644
|
+
issues: "MerchantProductIssue"
|
|
3645
|
+
},
|
|
3646
|
+
MerchantPlatformError: {
|
|
3647
|
+
code: "String",
|
|
3648
|
+
message: "String",
|
|
3649
|
+
retryable: "Boolean"
|
|
3650
|
+
},
|
|
3651
|
+
MerchantProductIssue: {
|
|
3652
|
+
offerId: "String",
|
|
3653
|
+
code: "String",
|
|
3654
|
+
description: "String",
|
|
3655
|
+
severity: "String"
|
|
3656
|
+
},
|
|
3657
|
+
MerchantSyncItem: {
|
|
3658
|
+
id: "ID",
|
|
3659
|
+
offerId: "String",
|
|
3660
|
+
operation: "String",
|
|
3661
|
+
status: "String",
|
|
3662
|
+
errorCode: "String",
|
|
3663
|
+
errorMessage: "String",
|
|
3664
|
+
attempts: "Int"
|
|
3665
|
+
},
|
|
3666
|
+
MerchantSyncRun: {
|
|
3667
|
+
id: "ID",
|
|
3668
|
+
createdAt: "DateTime",
|
|
3669
|
+
platform: "String",
|
|
3670
|
+
trigger: "String",
|
|
3671
|
+
status: "String",
|
|
3672
|
+
jobId: "String",
|
|
3673
|
+
total: "Int",
|
|
3674
|
+
succeeded: "Int",
|
|
3675
|
+
failed: "Int",
|
|
3676
|
+
errorSummary: "String",
|
|
3677
|
+
startedAt: "DateTime",
|
|
3678
|
+
finishedAt: "DateTime",
|
|
3679
|
+
items: "MerchantSyncItem"
|
|
3680
|
+
},
|
|
3681
|
+
AdditionalOrderState: {
|
|
3682
|
+
state: "String",
|
|
3683
|
+
selectedByDefault: "Boolean"
|
|
3684
|
+
},
|
|
3685
|
+
ChartDataType: {
|
|
3686
|
+
type: "ChartMetricType",
|
|
3687
|
+
title: "String",
|
|
3688
|
+
entries: "ChartEntry"
|
|
3689
|
+
},
|
|
3690
|
+
ChartMetrics: {
|
|
3691
|
+
data: "ChartDataType"
|
|
3692
|
+
},
|
|
3693
|
+
OrderSummaryMetrics: {
|
|
3694
|
+
data: "OrderSummaryDataMetric"
|
|
3695
|
+
},
|
|
3696
|
+
OrderSummaryDataMetric: {
|
|
3697
|
+
currencyCode: "CurrencyCode",
|
|
3698
|
+
total: "Float",
|
|
3699
|
+
totalWithTax: "Float",
|
|
3700
|
+
orderCount: "Float",
|
|
3701
|
+
averageOrderValue: "Float",
|
|
3702
|
+
averageOrderValueWithTax: "Float",
|
|
3703
|
+
productCount: "Float"
|
|
3704
|
+
},
|
|
3705
|
+
ChartEntryAdditionalData: {
|
|
3706
|
+
id: "String",
|
|
3707
|
+
name: "String",
|
|
3708
|
+
quantity: "Float"
|
|
3709
|
+
},
|
|
3710
|
+
ChartEntry: {
|
|
3711
|
+
intervalTick: "Int",
|
|
3712
|
+
value: "Float",
|
|
3713
|
+
additionalData: "ChartEntryAdditionalData"
|
|
3714
|
+
},
|
|
3580
3715
|
InpostConfig: {
|
|
3581
3716
|
shippingMethodId: "ID",
|
|
3582
3717
|
host: "String",
|
|
@@ -3609,6 +3744,9 @@ export const ReturnTypes = {
|
|
|
3609
3744
|
OrderCustomFields: {
|
|
3610
3745
|
pickupPointId: "String"
|
|
3611
3746
|
},
|
|
3747
|
+
ProductVariantCustomFields: {
|
|
3748
|
+
communicateID: "String"
|
|
3749
|
+
},
|
|
3612
3750
|
CustomFields: {
|
|
3613
3751
|
Address: "CustomFieldConfig",
|
|
3614
3752
|
Administrator: "CustomFieldConfig",
|