@deenruv/inpost-plugin 1.0.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.
Files changed (77) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +46 -0
  3. package/dist/plugin-server/api/inpost-admin.resolver.d.ts +20 -0
  4. package/dist/plugin-server/api/inpost-admin.resolver.js +64 -0
  5. package/dist/plugin-server/api/inpost-shop.resolver.d.ts +7 -0
  6. package/dist/plugin-server/api/inpost-shop.resolver.js +38 -0
  7. package/dist/plugin-server/constants.d.ts +2 -0
  8. package/dist/plugin-server/constants.js +5 -0
  9. package/dist/plugin-server/controllers/inpost.controller.d.ts +9 -0
  10. package/dist/plugin-server/controllers/inpost.controller.js +54 -0
  11. package/dist/plugin-server/entities/inpost-config-entity.d.ts +12 -0
  12. package/dist/plugin-server/entities/inpost-config-entity.js +49 -0
  13. package/dist/plugin-server/entities/inpost-ref-entity.d.ts +9 -0
  14. package/dist/plugin-server/entities/inpost-ref-entity.js +39 -0
  15. package/dist/plugin-server/extensions/inpost.extension.d.ts +1 -0
  16. package/dist/plugin-server/extensions/inpost.extension.js +53 -0
  17. package/dist/plugin-server/extensions/inpost.shop.extenstion.d.ts +1 -0
  18. package/dist/plugin-server/extensions/inpost.shop.extenstion.js +12 -0
  19. package/dist/plugin-server/guards/inpost-webhook.guard.d.ts +22 -0
  20. package/dist/plugin-server/guards/inpost-webhook.guard.js +96 -0
  21. package/dist/plugin-server/handlers/inpost.fulfillment.d.ts +20 -0
  22. package/dist/plugin-server/handlers/inpost.fulfillment.js +95 -0
  23. package/dist/plugin-server/index.d.ts +6 -0
  24. package/dist/plugin-server/index.js +78 -0
  25. package/dist/plugin-server/services/inpost.service.d.ts +46 -0
  26. package/dist/plugin-server/services/inpost.service.js +365 -0
  27. package/dist/plugin-server/types.d.ts +29 -0
  28. package/dist/plugin-server/types.js +2 -0
  29. package/dist/plugin-server/ui/Inpost.tsx +273 -0
  30. package/dist/plugin-server/ui/graphql/mutations.ts +14 -0
  31. package/dist/plugin-server/ui/graphql/queries.ts +7 -0
  32. package/dist/plugin-server/ui/graphql/scalars.ts +15 -0
  33. package/dist/plugin-server/ui/graphql/selectors.ts +0 -0
  34. package/dist/plugin-server/ui/providers.ts +9 -0
  35. package/dist/plugin-server/ui/routes.ts +1 -0
  36. package/dist/plugin-server/ui/styles/overwrite.css +0 -0
  37. package/dist/plugin-server/ui/translations/en.json +31 -0
  38. package/dist/plugin-server/ui/translations/pl.json +33 -0
  39. package/dist/plugin-server/ui/zeus/const.ts +4767 -0
  40. package/dist/plugin-server/ui/zeus/index.ts +21694 -0
  41. package/dist/plugin-server/ui/zeus/typedDocumentNode.ts +27 -0
  42. package/dist/plugin-server/ui.d.ts +2 -0
  43. package/dist/plugin-server/ui.js +17 -0
  44. package/dist/plugin-server/zeus/const.d.ts +6 -0
  45. package/dist/plugin-server/zeus/const.js +3654 -0
  46. package/dist/plugin-server/zeus/index.d.ts +18623 -0
  47. package/dist/plugin-server/zeus/index.js +1094 -0
  48. package/dist/plugin-server/zeus/typedDocumentNode.d.ts +3 -0
  49. package/dist/plugin-server/zeus/typedDocumentNode.js +13 -0
  50. package/dist/plugin-ui/components/Inpost.d.ts +2 -0
  51. package/dist/plugin-ui/components/Inpost.js +126 -0
  52. package/dist/plugin-ui/graphql/mutations.d.ts +12 -0
  53. package/dist/plugin-ui/graphql/mutations.js +10 -0
  54. package/dist/plugin-ui/graphql/queries.d.ts +23 -0
  55. package/dist/plugin-ui/graphql/queries.js +19 -0
  56. package/dist/plugin-ui/graphql/scalars.d.ts +16 -0
  57. package/dist/plugin-ui/graphql/scalars.js +14 -0
  58. package/dist/plugin-ui/graphql/selectors.d.ts +15 -0
  59. package/dist/plugin-ui/graphql/selectors.js +13 -0
  60. package/dist/plugin-ui/index.d.ts +1 -0
  61. package/dist/plugin-ui/index.js +11 -0
  62. package/dist/plugin-ui/locales/en/index.d.ts +35 -0
  63. package/dist/plugin-ui/locales/en/index.js +2 -0
  64. package/dist/plugin-ui/locales/en/inpost.json +34 -0
  65. package/dist/plugin-ui/locales/pl/index.d.ts +36 -0
  66. package/dist/plugin-ui/locales/pl/index.js +2 -0
  67. package/dist/plugin-ui/locales/pl/inpost.json +35 -0
  68. package/dist/plugin-ui/translation-ns.d.ts +1 -0
  69. package/dist/plugin-ui/translation-ns.js +1 -0
  70. package/dist/plugin-ui/tsconfig.json +18 -0
  71. package/dist/plugin-ui/zeus/const.d.ts +6 -0
  72. package/dist/plugin-ui/zeus/const.js +3651 -0
  73. package/dist/plugin-ui/zeus/index.d.ts +18623 -0
  74. package/dist/plugin-ui/zeus/index.js +1086 -0
  75. package/dist/plugin-ui/zeus/typedDocumentNode.d.ts +3 -0
  76. package/dist/plugin-ui/zeus/typedDocumentNode.js +9 -0
  77. package/package.json +55 -0
@@ -0,0 +1,3 @@
1
+ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
2
+ import { ValueTypes, GenericOperation, OperationOptions, GraphQLTypes, InputType, ScalarDefinition, ThunderGraphQLOptions, ExtractVariables } from './index.js';
3
+ export declare const typedGql: <O extends "query" | "mutation", SCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<SCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions) => TypedDocumentNode<InputType<GraphQLTypes[R], Z, SCLR>, ExtractVariables<Z>>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typedGql = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ const index_js_1 = require("./index.js");
6
+ const typedGql = (operation, graphqlOptions) => (o, ops) => {
7
+ const str = (0, index_js_1.Zeus)(operation, o, {
8
+ operationOptions: ops,
9
+ scalars: graphqlOptions === null || graphqlOptions === void 0 ? void 0 : graphqlOptions.scalars,
10
+ });
11
+ return (0, graphql_tag_1.gql)(str);
12
+ };
13
+ exports.typedGql = typedGql;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Inpost: React.FC;
@@ -0,0 +1,126 @@
1
+ import React, { useEffect, useMemo, useState } from "react";
2
+ import { Card, useLazyQuery, useTranslation, useDetailView, Input, Select, Button, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, CardContent, CardHeader, } from "@deenruv/react-ui-devkit";
3
+ import { GET_INPOST_ORGANIZATIONS, GET_INPOST_CONFIG, } from "../graphql/queries.js";
4
+ import { SET_INPOST_CONFIG } from "../graphql/mutations.js";
5
+ import { translationNS } from "../translation-ns.js";
6
+ export const Inpost = () => {
7
+ const { t } = useTranslation(translationNS);
8
+ const [mutate] = useLazyQuery(SET_INPOST_CONFIG);
9
+ const [get] = useLazyQuery(GET_INPOST_CONFIG);
10
+ const [getOrganizations] = useLazyQuery(GET_INPOST_ORGANIZATIONS);
11
+ const { entity, form } = useDetailView("shippingMethods-detail-view");
12
+ const shippingMethodId = useMemo(() => (entity ? entity.id : undefined), [entity]);
13
+ const handler = useMemo(() => form.base.state.fulfillmentHandler?.value, [form.base.state]);
14
+ const [inpostConfig, setInpostConfig] = useState({
15
+ host: "api-shipx-pl.easypack24.net",
16
+ });
17
+ const [organizations, setOrganizations] = useState([]);
18
+ const [modified, setModified] = useState(false);
19
+ useEffect(() => {
20
+ (async () => {
21
+ const config = await get();
22
+ if (config.getInpostConfig) {
23
+ setInpostConfig(config.getInpostConfig);
24
+ setModified(false);
25
+ }
26
+ })();
27
+ }, []);
28
+ useEffect(() => {
29
+ (async () => {
30
+ if (inpostConfig.apiKey && inpostConfig.host) {
31
+ const organizationsRes = await getOrganizations({
32
+ input: {
33
+ host: inpostConfig.host,
34
+ apiKey: inpostConfig.apiKey,
35
+ },
36
+ });
37
+ const organizations = organizationsRes.getInpostOrganizations;
38
+ setOrganizations(organizations.items);
39
+ if (organizations.items[0]) {
40
+ const change = {
41
+ inpostOrganization: organizations.items[0].id,
42
+ };
43
+ if (organizations.items[0].services[0]) {
44
+ change.service = organizations.items[0].services[0];
45
+ }
46
+ setInpostConfig((p) => ({
47
+ ...p,
48
+ ...change,
49
+ }));
50
+ }
51
+ }
52
+ })();
53
+ }, [inpostConfig.apiKey, inpostConfig.host]);
54
+ return shippingMethodId && handler === "inpost-fulfillment" ? (React.createElement(Card, { title: t("inpost-plugin.title") },
55
+ React.createElement(CardHeader, null,
56
+ React.createElement("h2", { className: "text-lg font-semibold" }, t("inpost-plugin.config-title")),
57
+ React.createElement("p", { className: "text-sm text-muted-foreground" }, t("inpost-plugin.config-description"))),
58
+ React.createElement(CardContent, null,
59
+ React.createElement("div", { className: "my-4" },
60
+ React.createElement(Input, { label: t("inpost-plugin.host-label"), value: inpostConfig.host, onChange: (v) => {
61
+ setInpostConfig({ ...inpostConfig, host: v.target.value });
62
+ setModified(true);
63
+ } })),
64
+ React.createElement("div", { className: "my-4" },
65
+ React.createElement(Input, { label: t("inpost-plugin.api-key-label"), value: inpostConfig.apiKey, onChange: (v) => {
66
+ setInpostConfig({ ...inpostConfig, apiKey: v.target.value });
67
+ setModified(true);
68
+ } })),
69
+ React.createElement("div", { className: "my-4" },
70
+ React.createElement(Input, { label: t("inpost-plugin.geowidget-key-label"), value: inpostConfig.geowidgetKey ?? "", onChange: (v) => {
71
+ setInpostConfig({
72
+ ...inpostConfig,
73
+ geowidgetKey: v.target.value,
74
+ });
75
+ setModified(true);
76
+ } })),
77
+ React.createElement("div", { className: "my-4" },
78
+ React.createElement(Select, { value: `${inpostConfig.inpostOrganization ?? ""}`, disabled: !organizations.length, onValueChange: (value) => {
79
+ setInpostConfig({
80
+ ...inpostConfig,
81
+ inpostOrganization: parseInt(value, 10),
82
+ });
83
+ setModified(true);
84
+ } },
85
+ React.createElement(SelectTrigger, { className: "w-full" },
86
+ React.createElement(SelectValue, { placeholder: t("inpost-plugin.organization-select-placeholder") })),
87
+ React.createElement(SelectContent, null,
88
+ React.createElement(SelectGroup, null,
89
+ React.createElement(SelectLabel, null, t("inpost-plugin.organization-select-label")),
90
+ organizations.map((org, idx) => (React.createElement(SelectItem, { key: org.id + idx, value: `${org.id}` }, org.name))))))),
91
+ React.createElement("div", { className: "my-4" },
92
+ React.createElement(Select, { value: `${inpostConfig.service ?? ""}`, disabled: typeof inpostConfig.inpostOrganization !== "number", onValueChange: (value) => {
93
+ setInpostConfig({ ...inpostConfig, service: value });
94
+ setModified(true);
95
+ } },
96
+ React.createElement(SelectTrigger, { className: "w-full" },
97
+ React.createElement(SelectValue, { placeholder: t("inpost-plugin.service-select-placeholder") })),
98
+ React.createElement(SelectContent, null,
99
+ React.createElement(SelectGroup, null,
100
+ React.createElement(SelectLabel, null, t("inpost-plugin.service-select-label")),
101
+ organizations
102
+ .find((org) => typeof inpostConfig.inpostOrganization === "number" &&
103
+ org.id === inpostConfig.inpostOrganization)
104
+ ?.services.map((svc) => (React.createElement(SelectItem, { key: svc, value: `${svc}` }, t(`inpost-plugin.service-${svc.replace(/_/gi, "-")}`)))))))),
105
+ React.createElement("div", { style: { marginTop: "28px" } },
106
+ React.createElement(Button, { className: "button primary", onClick: () => {
107
+ const payload = inpostConfig;
108
+ if (!payload.host)
109
+ return;
110
+ if (!payload.apiKey)
111
+ return;
112
+ if (!payload.inpostOrganization)
113
+ return;
114
+ if (!payload.service)
115
+ return;
116
+ mutate({ input: { shippingMethodId, ...payload } }).then(() => setModified(false));
117
+ }, disabled: !inpostConfig.host ||
118
+ !inpostConfig.apiKey ||
119
+ !inpostConfig.inpostOrganization ||
120
+ !inpostConfig.service ||
121
+ (!modified &&
122
+ !!inpostConfig.host &&
123
+ !!inpostConfig.apiKey &&
124
+ !!inpostConfig.inpostOrganization &&
125
+ !!inpostConfig.service) }, t("inpost-plugin.save")))))) : null;
126
+ };
@@ -0,0 +1,12 @@
1
+ export declare const SET_INPOST_CONFIG: import("@graphql-typed-document-node/core").TypedDocumentNode<{
2
+ setInpostShippingMethodConfig: boolean;
3
+ }, {} & {
4
+ input: {
5
+ shippingMethodId: unknown;
6
+ host: string | import("../zeus").Variable<any, string>;
7
+ apiKey: string | import("../zeus").Variable<any, string>;
8
+ geowidgetKey?: string | import("../zeus").Variable<any, string> | null | undefined;
9
+ inpostOrganization: number | import("../zeus").Variable<any, string>;
10
+ service: string | import("../zeus").Variable<any, string>;
11
+ };
12
+ }>;
@@ -0,0 +1,10 @@
1
+ import { $ } from "../zeus";
2
+ import { typedGql } from "../zeus/typedDocumentNode";
3
+ import { scalars } from "./scalars";
4
+ const mutation = typedGql("mutation", { scalars });
5
+ export const SET_INPOST_CONFIG = mutation({
6
+ setInpostShippingMethodConfig: [
7
+ { input: $("input", "SetInpostShippingMethodConfigInput!") },
8
+ true,
9
+ ],
10
+ });
@@ -0,0 +1,23 @@
1
+ export declare const GET_INPOST_CONFIG: import("@graphql-typed-document-node/core").TypedDocumentNode<{
2
+ getInpostConfig?: {
3
+ host: string;
4
+ apiKey: string;
5
+ geowidgetKey?: string | null | undefined;
6
+ inpostOrganization: number;
7
+ service: string;
8
+ } | undefined;
9
+ }, {} & {}>;
10
+ export declare const GET_INPOST_ORGANIZATIONS: import("@graphql-typed-document-node/core").TypedDocumentNode<{
11
+ getInpostOrganizations: {
12
+ items: {
13
+ id: number;
14
+ name: string;
15
+ services: string[];
16
+ }[];
17
+ };
18
+ }, {} & {
19
+ input: {
20
+ host: string | import("../zeus").Variable<any, string>;
21
+ apiKey: string | import("../zeus").Variable<any, string>;
22
+ };
23
+ }>;
@@ -0,0 +1,19 @@
1
+ import { typedGql } from "../zeus/typedDocumentNode";
2
+ import { scalars } from "./scalars";
3
+ import { $ } from "../zeus";
4
+ const query = typedGql("query", { scalars });
5
+ export const GET_INPOST_CONFIG = query({
6
+ getInpostConfig: {
7
+ host: true,
8
+ apiKey: true,
9
+ geowidgetKey: true,
10
+ inpostOrganization: true,
11
+ service: true,
12
+ },
13
+ });
14
+ export const GET_INPOST_ORGANIZATIONS = query({
15
+ getInpostOrganizations: [
16
+ { input: $("input", "GetInpostOrganizationsInput!") },
17
+ { items: { id: true, name: true, services: true } },
18
+ ],
19
+ });
@@ -0,0 +1,16 @@
1
+ import { FromSelector, GraphQLTypes } from "../zeus";
2
+ export declare const scalars: {
3
+ DateTime: {
4
+ decode: (e: unknown) => string;
5
+ encode: (e: unknown) => string;
6
+ };
7
+ JSON: {
8
+ decode: (e: unknown) => any;
9
+ encode: (e: unknown) => string;
10
+ };
11
+ Money: {
12
+ decode: (e: unknown) => number;
13
+ };
14
+ };
15
+ export type ScalarsType = typeof scalars;
16
+ export type FromSelectorWithScalars<SELECTOR, NAME extends keyof GraphQLTypes> = FromSelector<SELECTOR, NAME, ScalarsType>;
@@ -0,0 +1,14 @@
1
+ import { ZeusScalars } from "../zeus";
2
+ export const scalars = ZeusScalars({
3
+ DateTime: {
4
+ decode: (e) => new Date(e).toISOString(),
5
+ encode: (e) => e.toISOString(),
6
+ },
7
+ JSON: {
8
+ decode: (e) => JSON.parse(e),
9
+ encode: (e) => JSON.stringify(e),
10
+ },
11
+ Money: {
12
+ decode: (e) => e,
13
+ },
14
+ });
@@ -0,0 +1,15 @@
1
+ import { FromSelectorWithScalars } from "./scalars.js";
2
+ export declare const InpostConfigSelector: {
3
+ host: true;
4
+ apiKey: true;
5
+ geowidgetKey: true;
6
+ inpostOrganization: true;
7
+ service: true;
8
+ };
9
+ export type InpostConfig = FromSelectorWithScalars<typeof InpostConfigSelector, "InpostConfig">;
10
+ export declare const InpostOrganizationSelector: {
11
+ id: true;
12
+ name: true;
13
+ services: true;
14
+ };
15
+ export type InpostOrganization = FromSelectorWithScalars<typeof InpostOrganizationSelector, "InpostOrganization">;
@@ -0,0 +1,13 @@
1
+ import { Selector } from "../zeus/index.js";
2
+ export const InpostConfigSelector = Selector("InpostConfig")({
3
+ host: true,
4
+ apiKey: true,
5
+ geowidgetKey: true,
6
+ inpostOrganization: true,
7
+ service: true,
8
+ });
9
+ export const InpostOrganizationSelector = Selector("InpostOrganization")({
10
+ id: true,
11
+ name: true,
12
+ services: true,
13
+ });
@@ -0,0 +1 @@
1
+ export declare const InPostUIPlugin: import("@deenruv/react-ui-devkit").DeenruvUIPlugin<Record<string, any>>;
@@ -0,0 +1,11 @@
1
+ import { createDeenruvUIPlugin } from "@deenruv/react-ui-devkit";
2
+ import pl from "./locales/pl";
3
+ import en from "./locales/en";
4
+ import { translationNS } from "./translation-ns";
5
+ import { Inpost } from "./components/Inpost.js";
6
+ export const InPostUIPlugin = createDeenruvUIPlugin({
7
+ version: "1.0.0",
8
+ name: "InPost Plugin",
9
+ translations: { ns: translationNS, data: { en, pl } },
10
+ components: [{ id: "shippingMethods-detail-view", component: Inpost }],
11
+ });
@@ -0,0 +1,35 @@
1
+ declare const _default: {
2
+ "inpost-plugin": {
3
+ title: string;
4
+ "host-label": string;
5
+ "host-tooltip": string;
6
+ "api-key-label": string;
7
+ "api-key-tooltip": string;
8
+ "organization-select-label": string;
9
+ "organization-select-tooltip": string;
10
+ "config-description": string;
11
+ "config-title": string;
12
+ "service-select-label": string;
13
+ "service-select-tooltip": string;
14
+ "service-inpost-locker-standard": string;
15
+ "service-inpost-locker-economy": string;
16
+ "service-inpost-locker-allegro": string;
17
+ "service-inpost-locker-pass-thru": string;
18
+ "service-inpost-letter-allegro": string;
19
+ "service-inpost-courier-allegro": string;
20
+ "service-inpost-courier-c2c": string;
21
+ "service-inpost-courier-standard": string;
22
+ "service-inpost-courier-express-1000": string;
23
+ "service-inpost-courier-express-1200": string;
24
+ "service-inpost-courier-express-1700": string;
25
+ "service-inpost-courier-palette": string;
26
+ "geowidget-key-label": string;
27
+ save: string;
28
+ "connection-label": string;
29
+ "connection-tooltip": string;
30
+ connected: string;
31
+ "not-connected": string;
32
+ "connection-error": string;
33
+ };
34
+ }[];
35
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import inpost from "./inpost.json";
2
+ export default [inpost];
@@ -0,0 +1,34 @@
1
+ {
2
+ "inpost-plugin": {
3
+ "title": "Configure InPost shipping method",
4
+ "host-label": "Host API ShipX",
5
+ "host-tooltip": "Host API ShipX that should be used to communicate with API",
6
+ "api-key-label": "ShipX API key",
7
+ "api-key-tooltip": "Private API key for ShipX API",
8
+ "organization-select-label": "Organization",
9
+ "organization-select-tooltip": "Select InPost organization",
10
+ "config-description": "Configure InPost shipping method to enable integration with InPost services.",
11
+ "config-title": "InPost Configuration",
12
+ "service-select-label": "Service",
13
+ "service-select-tooltip": "Select InPost service",
14
+ "service-inpost-locker-standard": "Parcel locker shipment - standard",
15
+ "service-inpost-locker-economy": "Parcel locker shipment - economy",
16
+ "service-inpost-locker-allegro": "Parcel locker shipment - Allegro Paczkomat® InPost.",
17
+ "service-inpost-locker-pass-thru": "Parcel locker shipment - Pass-Thru",
18
+ "service-inpost-letter-allegro": "Courier shipment - Allegro MiniKurier24 InPost",
19
+ "service-inpost-courier-allegro": "Courier shipment - Allegro Kurier24 InPost.",
20
+ "service-inpost-courier-c2c": "Courier shipment - InPost Courier C2C (service for a retail customer - prepaid)",
21
+ "service-inpost-courier-standard": "Courier shipment standard",
22
+ "service-inpost-courier-express-1000": "Courier shipment with delivery until 10:00",
23
+ "service-inpost-courier-express-1200": "Courier shipment with delivery until 12:00",
24
+ "service-inpost-courier-express-1700": "Courier shipment with delivery until 17:00",
25
+ "service-inpost-courier-palette": "Courier shipment Pallet Standard",
26
+ "geowidget-key-label": "Geowidget key",
27
+ "save": "Zapisz",
28
+ "connection-label": "Connection",
29
+ "connection-tooltip": "Connection to InPost API",
30
+ "connected": "Connected",
31
+ "not-connected": "Not connected",
32
+ "connection-error": "Connection error"
33
+ }
34
+ }
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ "inpost-plugin": {
3
+ title: string;
4
+ "host-label": string;
5
+ "host-tooltip": string;
6
+ "api-key-label": string;
7
+ "api-key-tooltip": string;
8
+ "geowidget-key-label": string;
9
+ "config-description": string;
10
+ "config-title": string;
11
+ "geowidget-key-tooltip": string;
12
+ "organization-select-label": string;
13
+ "organization-select-tooltip": string;
14
+ "service-select-label": string;
15
+ "service-select-tooltip": string;
16
+ "service-inpost-locker-standard": string;
17
+ "service-inpost-locker-economy": string;
18
+ "service-inpost-locker-allegro": string;
19
+ "service-inpost-locker-pass-thru": string;
20
+ "service-inpost-letter-allegro": string;
21
+ "service-inpost-courier-allegro": string;
22
+ "service-inpost-courier-c2c": string;
23
+ "service-inpost-courier-standard": string;
24
+ "service-inpost-courier-express-1000": string;
25
+ "service-inpost-courier-express-1200": string;
26
+ "service-inpost-courier-express-1700": string;
27
+ "service-inpost-courier-palette": string;
28
+ save: string;
29
+ "connection-label": string;
30
+ "connection-tooltip": string;
31
+ connected: string;
32
+ "not-connected": string;
33
+ "connection-error": string;
34
+ };
35
+ }[];
36
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import inpost from "./inpost.json";
2
+ export default [inpost];
@@ -0,0 +1,35 @@
1
+ {
2
+ "inpost-plugin": {
3
+ "title": "Skonfiguruj metodę wysyłki InPost",
4
+ "host-label": "Host API ShipX",
5
+ "host-tooltip": "Host API ShipX który powinien być użyty do komunikacji z API",
6
+ "api-key-label": "ShipX API klucz",
7
+ "api-key-tooltip": "Klucz prywatny do API ShipX",
8
+ "geowidget-key-label": "Klucz Geowidget",
9
+ "config-description": "Skonfiguruj metodę wysyłki InPost, aby umożliwić integrację z usługami InPost.",
10
+ "config-title": "Konfiguracja InPost",
11
+ "geowidget-key-tooltip": "Klucz publiczny do Geowidget",
12
+ "organization-select-label": "Organizacja",
13
+ "organization-select-tooltip": "Wybierz organizację w InPost",
14
+ "service-select-label": "Usługa",
15
+ "service-select-tooltip": "Wybierz usługę w InPost",
16
+ "service-inpost-locker-standard": "Przesyłka Paczkomat® - standardowa",
17
+ "service-inpost-locker-economy": "Przesyłka Paczkomat® - ekonomiczna",
18
+ "service-inpost-locker-allegro": "Przesyłka Paczkomat® - Allegro Paczkomat® InPost",
19
+ "service-inpost-locker-pass-thru": "Przesyłka Paczkomat® - Podaj Dalej",
20
+ "service-inpost-letter-allegro": "Przesyłka kurierska - Allegro MiniKurier24 InPost",
21
+ "service-inpost-courier-allegro": "Przesyłka kurierska - Allegro Kurier24 InPost",
22
+ "service-inpost-courier-c2c": "Przesyłka kurierska InPost Kurier C2C (usługa dla klienta detalicznego - prepaid)",
23
+ "service-inpost-courier-standard": "Przesyłka kurierska standardowa",
24
+ "service-inpost-courier-express-1000": "Przesyłka kurierska z doręczeniem do 10:00",
25
+ "service-inpost-courier-express-1200": "Przesyłka kurierska z doręczeniem do 12:00",
26
+ "service-inpost-courier-express-1700": "Przesyłka kurierska z doręczeniem do 17:00",
27
+ "service-inpost-courier-palette": "Przesyłka kurierska Paleta Standard",
28
+ "save": "Zapisz",
29
+ "connection-label": "Połączenie",
30
+ "connection-tooltip": "Połączenie z API InPost",
31
+ "connected": "Połączono",
32
+ "not-connected": "Nie połączono",
33
+ "connection-error": "Błąd połączenia"
34
+ }
35
+ }
@@ -0,0 +1 @@
1
+ export declare const translationNS: string;
@@ -0,0 +1 @@
1
+ export const translationNS = Symbol("inpost-plugin").toString();
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "ESNext",
4
+ "moduleResolution": "node",
5
+ "target": "ES2020",
6
+ "jsx": "react",
7
+ "outDir": "../../dist/plugin-ui",
8
+ "importHelpers": true,
9
+ "declaration": true,
10
+ "resolveJsonModule": true,
11
+ "skipLibCheck": true,
12
+ "strict": true,
13
+ "noImplicitAny": true,
14
+ "esModuleInterop": true,
15
+ "allowSyntheticDefaultImports": true
16
+ },
17
+ "include": ["./**/*.tsx", "./**/*.json", "./**/*.ts"]
18
+ }
@@ -0,0 +1,6 @@
1
+ export declare const AllTypesProps: Record<string, any>;
2
+ export declare const ReturnTypes: Record<string, any>;
3
+ export declare const Ops: {
4
+ query: "Query";
5
+ mutation: "Mutation";
6
+ };