@deenruv/upsell-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 (52) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +42 -0
  3. package/dist/plugin-server/api/upsell-admin.resolver.d.ts +16 -0
  4. package/dist/plugin-server/api/upsell-admin.resolver.js +58 -0
  5. package/dist/plugin-server/api/upsell-product.resolver.d.ts +7 -0
  6. package/dist/plugin-server/api/upsell-product.resolver.js +36 -0
  7. package/dist/plugin-server/constants.d.ts +1 -0
  8. package/dist/plugin-server/constants.js +1 -0
  9. package/dist/plugin-server/entities/upsell.entity.d.ts +8 -0
  10. package/dist/plugin-server/entities/upsell.entity.js +38 -0
  11. package/dist/plugin-server/extensions/upsell.extension.d.ts +3 -0
  12. package/dist/plugin-server/extensions/upsell.extension.js +26 -0
  13. package/dist/plugin-server/index.d.ts +8 -0
  14. package/dist/plugin-server/index.js +43 -0
  15. package/dist/plugin-server/services/upsell.service.d.ts +11 -0
  16. package/dist/plugin-server/services/upsell.service.js +76 -0
  17. package/dist/plugin-server/types.d.ts +1 -0
  18. package/dist/plugin-server/types.js +1 -0
  19. package/dist/plugin-server/zeus/const.d.ts +6 -0
  20. package/dist/plugin-server/zeus/const.js +4039 -0
  21. package/dist/plugin-server/zeus/index.d.ts +20455 -0
  22. package/dist/plugin-server/zeus/index.js +443 -0
  23. package/dist/plugin-ui/components/UpsellSelect.d.ts +2 -0
  24. package/dist/plugin-ui/components/UpsellSelect.js +99 -0
  25. package/dist/plugin-ui/graphql/mutations.d.ts +18 -0
  26. package/dist/plugin-ui/graphql/mutations.js +14 -0
  27. package/dist/plugin-ui/graphql/queries.d.ts +15 -0
  28. package/dist/plugin-ui/graphql/queries.js +11 -0
  29. package/dist/plugin-ui/graphql/scalars.d.ts +13 -0
  30. package/dist/plugin-ui/graphql/scalars.js +14 -0
  31. package/dist/plugin-ui/graphql/selectors.d.ts +12 -0
  32. package/dist/plugin-ui/graphql/selectors.js +8 -0
  33. package/dist/plugin-ui/index.d.ts +1 -0
  34. package/dist/plugin-ui/index.js +21 -0
  35. package/dist/plugin-ui/locales/en/index.d.ts +5 -0
  36. package/dist/plugin-ui/locales/en/index.js +2 -0
  37. package/dist/plugin-ui/locales/en/wfirma.json +4 -0
  38. package/dist/plugin-ui/locales/pl/index.d.ts +5 -0
  39. package/dist/plugin-ui/locales/pl/index.js +2 -0
  40. package/dist/plugin-ui/locales/pl/wfirma.json +4 -0
  41. package/dist/plugin-ui/pages/ExtrasPage.d.ts +2 -0
  42. package/dist/plugin-ui/pages/ExtrasPage.js +8 -0
  43. package/dist/plugin-ui/translation-ns.d.ts +1 -0
  44. package/dist/plugin-ui/translation-ns.js +1 -0
  45. package/dist/plugin-ui/tsconfig.json +18 -0
  46. package/dist/plugin-ui/zeus/const.d.ts +6 -0
  47. package/dist/plugin-ui/zeus/const.js +4039 -0
  48. package/dist/plugin-ui/zeus/index.d.ts +20455 -0
  49. package/dist/plugin-ui/zeus/index.js +459 -0
  50. package/dist/plugin-ui/zeus/typedDocumentNode.d.ts +3 -0
  51. package/dist/plugin-ui/zeus/typedDocumentNode.js +9 -0
  52. package/package.json +61 -0
@@ -0,0 +1,21 @@
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 { ExtrasPage } from "./pages/ExtrasPage";
6
+ import React from "react";
7
+ export const UpsellUIPlugin = createDeenruvUIPlugin({
8
+ version: "1.0.0",
9
+ name: "UpsellUI Plugin",
10
+ translations: { ns: translationNS, data: { en, pl } },
11
+ tabs: [
12
+ {
13
+ id: "products-detail-view",
14
+ component: React.createElement(ExtrasPage, null),
15
+ hideSidebar: true,
16
+ sidebarReplacement: React.createElement(React.Fragment, null),
17
+ name: "Extras",
18
+ label: "Extras",
19
+ },
20
+ ],
21
+ });
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ createReceipt: string;
3
+ createProformaInvoice: string;
4
+ }[];
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import wfirma from './wfirma.json';
2
+ export default [wfirma];
@@ -0,0 +1,4 @@
1
+ {
2
+ "createReceipt": "Create receipt",
3
+ "createProformaInvoice": "Create proforma invoice"
4
+ }
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ createReceipt: string;
3
+ createProformaInvoice: string;
4
+ }[];
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import wfirma from './wfirma.json';
2
+ export default [wfirma];
@@ -0,0 +1,4 @@
1
+ {
2
+ "createReceipt": "Utwórz paragon",
3
+ "createProformaInvoice": "Utwórz fakturę proforma"
4
+ }
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const ExtrasPage: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Card, CardContent } from "@deenruv/react-ui-devkit";
2
+ import React from "react";
3
+ import { UpsellSelect } from "../components/UpsellSelect";
4
+ export const ExtrasPage = () => {
5
+ return (React.createElement(Card, null,
6
+ React.createElement(CardContent, { className: "pt-6" },
7
+ React.createElement(UpsellSelect, null))));
8
+ };
@@ -0,0 +1 @@
1
+ export declare const translationNS: string;
@@ -0,0 +1 @@
1
+ export const translationNS = Symbol("upsell-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
+ };