@unimaze/billing 0.1.2-rc.10 → 0.1.2-rc.2

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 (101) hide show
  1. package/README.md +3 -11
  2. package/lib/common/components/attachments/Attachment.d.ts +2 -8
  3. package/lib/common/components/attachments/Attachment.js +8 -33
  4. package/lib/common/components/attachments/index.d.ts +2 -9
  5. package/lib/common/components/attachments/index.js +6 -15
  6. package/lib/common/components/base-information/index.d.ts +3 -6
  7. package/lib/common/components/base-information/index.js +81 -100
  8. package/lib/common/components/billing-lines/index.d.ts +23 -9
  9. package/lib/common/components/billing-lines/index.js +38 -116
  10. package/lib/common/components/delivery-location/index.d.ts +2 -5
  11. package/lib/common/components/delivery-location/index.js +11 -43
  12. package/lib/common/components/editable-cell/index.d.ts +1 -1
  13. package/lib/common/components/editable-cell/index.js +10 -76
  14. package/lib/common/components/editable-row/index.d.ts +5 -5
  15. package/lib/common/components/editable-row/index.js +6 -8
  16. package/lib/common/components/index.d.ts +5 -10
  17. package/lib/common/components/index.js +8 -20
  18. package/lib/common/components/issuer/index.d.ts +7 -0
  19. package/lib/common/components/{customer/hardCoddedCustomer.js → issuer/index.js} +8 -5
  20. package/lib/common/components/payer/index.d.ts +3 -0
  21. package/lib/common/components/payer/index.js +50 -0
  22. package/lib/common/components/payment-method/index.d.ts +3 -6
  23. package/lib/common/components/payment-method/index.js +17 -57
  24. package/lib/common/consts/validationRules.d.ts +3 -2
  25. package/lib/common/consts/validationRules.js +7 -0
  26. package/lib/common/enums/index.d.ts +1 -1
  27. package/lib/common/enums/index.js +4 -2
  28. package/lib/common/types/BillingLineMetadataOverride.d.ts +0 -1
  29. package/lib/create-credit-note/index.d.ts +2 -1
  30. package/lib/create-credit-note/index.js +14 -6
  31. package/lib/create-invoice/index.d.ts +2 -1
  32. package/lib/create-invoice/index.js +21 -79
  33. package/lib/example/src/index.d.ts +1 -1
  34. package/lib/index.js +0 -5
  35. package/lib/src/common/components/attachments/Attachment.d.ts +2 -8
  36. package/lib/src/common/components/attachments/index.d.ts +2 -9
  37. package/lib/src/common/components/base-information/index.d.ts +3 -6
  38. package/lib/src/common/components/billing-lines/index.d.ts +23 -9
  39. package/lib/src/common/components/delivery-location/index.d.ts +2 -5
  40. package/lib/src/common/components/editable-cell/index.d.ts +1 -1
  41. package/lib/src/common/components/editable-row/index.d.ts +5 -5
  42. package/lib/src/common/components/issuer/index.d.ts +7 -0
  43. package/lib/src/common/components/payer/index.d.ts +3 -0
  44. package/lib/src/common/components/payment-method/index.d.ts +3 -6
  45. package/lib/src/common/consts/validationRules.d.ts +3 -2
  46. package/lib/src/create-credit-note/index.d.ts +9 -0
  47. package/lib/src/create-invoice/index.d.ts +2 -1
  48. package/lib/src/index.d.ts +4 -0
  49. package/lib/style/index.css +1222 -0
  50. package/lib/utils/ApiUtility.d.ts +1 -8
  51. package/lib/utils/ApiUtility.js +1 -17
  52. package/lib/utils/ConversionUtility.d.ts +4 -5
  53. package/lib/utils/ConversionUtility.js +133 -121
  54. package/lib/utils/index.d.ts +2 -2
  55. package/lib/utils/index.js +2 -2
  56. package/package.json +7 -12
  57. package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +0 -6
  58. package/lib/common/components/base-information/ReferenceIdentifiers.js +0 -40
  59. package/lib/common/components/billing-lines/BillingCalculations.d.ts +0 -11
  60. package/lib/common/components/billing-lines/BillingCalculations.js +0 -61
  61. package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
  62. package/lib/common/components/billing-lines/BillingTaxSummary.js +0 -51
  63. package/lib/common/components/billing-lines/billingLIneFormData.d.ts +0 -7
  64. package/lib/common/components/billing-lines/billingLIneFormData.js +0 -63
  65. package/lib/common/components/customer/hardCoddedCustomer.d.ts +0 -7
  66. package/lib/common/components/customer/index.d.ts +0 -6
  67. package/lib/common/components/customer/index.js +0 -93
  68. package/lib/common/components/form-item/index.d.ts +0 -21
  69. package/lib/common/components/form-item/index.js +0 -27
  70. package/lib/common/components/locale-intl/index.d.ts +0 -10
  71. package/lib/common/components/locale-intl/index.js +0 -45
  72. package/lib/common/components/supplier/index.d.ts +0 -6
  73. package/lib/common/components/supplier/index.js +0 -93
  74. package/lib/common/types/ReceiverRequirements.d.ts +0 -81
  75. package/lib/common/types/ReceiverRequirements.js +0 -379
  76. package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -6
  77. package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +0 -11
  78. package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
  79. package/lib/src/common/components/billing-lines/billingLIneFormData.d.ts +0 -7
  80. package/lib/src/common/components/customer/index.d.ts +0 -6
  81. package/lib/src/common/components/form-item/index.d.ts +0 -21
  82. package/lib/src/common/components/index.d.ts +0 -10
  83. package/lib/src/common/components/locale-intl/index.d.ts +0 -10
  84. package/lib/src/common/components/supplier/index.d.ts +0 -6
  85. package/lib/src/common/types/ReceiverRequirements.d.ts +0 -81
  86. package/lib/src/translations/locales.d.ts +0 -74
  87. package/lib/src/utils/ApiUtility.d.ts +0 -21
  88. package/lib/src/utils/BillingLineUtility.d.ts +0 -8
  89. package/lib/src/utils/ConversionUtility.d.ts +0 -5
  90. package/lib/src/utils/RequirementsUtility.d.ts +0 -5
  91. package/lib/src/utils/billingLineFormData.d.ts +0 -7
  92. package/lib/src/utils/index.d.ts +0 -2
  93. package/lib/translations/locales/is.json +0 -70
  94. package/lib/translations/locales.d.ts +0 -74
  95. package/lib/translations/locales.js +0 -10
  96. package/lib/utils/BillingLineUtility.d.ts +0 -8
  97. package/lib/utils/BillingLineUtility.js +0 -66
  98. package/lib/utils/RequirementsUtility.d.ts +0 -5
  99. package/lib/utils/RequirementsUtility.js +0 -23
  100. package/lib/utils/billingLineFormData.d.ts +0 -7
  101. package/lib/utils/billingLineFormData.js +0 -63
@@ -1,6 +1,7 @@
1
1
  import { BillingLineMetadataOverride } from "../types/BillingLineMetadataOverride";
2
2
  import { Rule } from "rc-field-form/lib/interface";
3
- export declare type ValidationRulesObject = {
4
- [key in keyof Omit<BillingLineMetadataOverride, 'key'>]: Rule[];
3
+ declare type ValidationRulesObject = {
4
+ [key in keyof BillingLineMetadataOverride]: Rule[];
5
5
  };
6
6
  export declare const validationRules: ValidationRulesObject;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import "antd/dist/antd.compact.css";
2
+ import "../style/index.css";
3
+ import React from "react";
4
+ import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
5
+ interface Props {
6
+ issuer: ProfileOutput;
7
+ }
8
+ declare const CreateInvoice: React.FC<Props>;
9
+ export default CreateInvoice;
@@ -1,9 +1,10 @@
1
+ import "antd/dist/antd.compact.css";
1
2
  import "../style/index.css";
2
3
  import React from "react";
3
4
  import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
4
5
  import { CommonProps } from "../common/types/CommonProps";
5
6
  interface Props extends CommonProps {
6
- customer: ProfileOutput;
7
+ issuer: ProfileOutput;
7
8
  }
8
9
  /**
9
10
  * Component for creating a form for creating an invoice and submitting it to the MAPI transaction services
@@ -0,0 +1,4 @@
1
+ export * from "./common/enums";
2
+ export * from "./common/types";
3
+ export { default as CreateInvoice } from "./create-invoice";
4
+ export { default as CreateCreditNote } from "./create-credit-note";