@endevops/peppol-schema 0.1.1-alpha.1 → 0.1.1-alpha.3

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/xml.d.ts CHANGED
@@ -35,4 +35,5 @@ export declare const parserOptions: {
35
35
  trimValues: true;
36
36
  };
37
37
  //#endregion
38
+ export type { XmlNode };
38
39
  //# sourceMappingURL=xml.d.ts.map
package/dist/xml.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"xml.d.ts","names":[],"sources":["../src/xml/builder-options.ts","../src/helpers/get-prop.ts","../src/xml/nodable-parser.ts","../src/xml/parser-options.ts"],"mappings":";;qBAIa;;;;;;;;;;;;;;;KCDD;;;wBCgBI,gBAAgB,gBAAgB;;;qBCfnC"}
1
+ {"version":3,"file":"xml.d.ts","names":[],"sources":["../src/xml/builder-options.ts","../src/helpers/get-prop.ts","../src/xml/nodable-parser.ts","../src/xml/parser-options.ts"],"mappings":";;qBAIa;;;;;;;;;;;;;;;KCDD;;;wBCkBI,gBAAgB,gBAAgB;;;qBCjBnC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/package.json",
3
3
  "name": "@endevops/peppol-schema",
4
- "version": "0.1.1-alpha.1",
4
+ "version": "0.1.1-alpha.3",
5
5
  "description": "TypeScript Effect Schema models for PEPPOL BIS Billing 3.0 — decode, validate and encode Invoice, Credit Note, Invoice Response and Message Level Response XML, with generated code lists, Schematron rules and identifier validations",
6
6
  "keywords": [
7
7
  "bis-billing",
@@ -5,7 +5,7 @@ import { PeppolIdentifier } from '#/schemas/fields/peppol-identifier-schema.ts';
5
5
  import { opaque } from '#/schemas/utils/opaque.ts';
6
6
  import { additionalDocumentReferenceCodeSchema } from '#/schemas/values/additional-document-reference-code-schema.ts';
7
7
 
8
- class PeppolAttachmentExternalReference extends opaque<PeppolAttachmentExternalReference>()(
8
+ export class PeppolAttachmentExternalReference extends opaque<PeppolAttachmentExternalReference>()(
9
9
  Schema.Struct({
10
10
  /**
11
11
  * @description The URL (Uniform Resource Locator) that identifies where the external document is located. A means of locating the resource, including its
@@ -22,7 +22,7 @@ class PeppolAttachmentExternalReference extends opaque<PeppolAttachmentExternalR
22
22
  })
23
23
  ) {}
24
24
 
25
- class PeppolAttachment extends opaque<PeppolAttachment>()(
25
+ export class PeppolAttachment extends opaque<PeppolAttachment>()(
26
26
  Schema.Struct({
27
27
  /**
28
28
  * @description An attached document embedded as binary object (Base64) or sent together with the invoice.
@@ -46,7 +46,7 @@ class PeppolAttachment extends opaque<PeppolAttachment>()(
46
46
  })
47
47
  ) {}
48
48
 
49
- class PeppolId extends opaque<PeppolId>()(
49
+ export class PeppolId extends opaque<PeppolId>()(
50
50
  Schema.Struct({
51
51
  /**
52
52
  * @description An identifier for an object on which the invoice is based (with DocumentTypeCode=130), given by the Seller, the identifier for the supporting
@@ -3,7 +3,7 @@ import { Schema } from 'effect';
3
3
  import { opaque } from '#/schemas/utils/opaque.ts';
4
4
  import { peppolCountryCodeSchema } from '#/schemas/values/peppol-country-code-schema.ts';
5
5
 
6
- class PeppolAddressLine extends opaque<PeppolAddressLine>()(
6
+ export class PeppolAddressLine extends opaque<PeppolAddressLine>()(
7
7
  Schema.Struct({
8
8
  /**
9
9
  * @description An additional address line in an address that can be used to give further details supplementing the main line.
@@ -16,7 +16,7 @@ class PeppolAddressLine extends opaque<PeppolAddressLine>()(
16
16
  })
17
17
  ) {}
18
18
 
19
- class PeppolCountryCode extends opaque<PeppolCountryCode>()(
19
+ export class PeppolCountryCode extends opaque<PeppolCountryCode>()(
20
20
  Schema.Struct({
21
21
  /**
22
22
  * @description A code that identifies the country.
@@ -3,7 +3,7 @@ import { Schema } from 'effect';
3
3
  import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
4
4
  import { opaque } from '#/schemas/utils/opaque.ts';
5
5
 
6
- class PeppolInvoiceDocumentReference extends opaque<PeppolInvoiceDocumentReference>()(
6
+ export class PeppolInvoiceDocumentReference extends opaque<PeppolInvoiceDocumentReference>()(
7
7
  Schema.Struct({
8
8
  /**
9
9
  * @description The identification of an Invoice that was previously sent by the seller.
@@ -7,7 +7,7 @@ import { icdCodesSchema } from '#/schemas/values/icd-codes-schema.ts';
7
7
  import { PeppolAddress } from './peppol-address-schema.ts';
8
8
  import { PeppolIdentifier } from './peppol-identifier-schema.ts';
9
9
 
10
- class PeppolDeliveryPartyPartyName extends opaque<PeppolDeliveryPartyPartyName>()(
10
+ export class PeppolDeliveryPartyPartyName extends opaque<PeppolDeliveryPartyPartyName>()(
11
11
  Schema.Struct({
12
12
  /**
13
13
  * @description The name of the party to which the goods and services are delivered.
@@ -20,7 +20,7 @@ class PeppolDeliveryPartyPartyName extends opaque<PeppolDeliveryPartyPartyName>(
20
20
  })
21
21
  ) {}
22
22
 
23
- class PeppolDeliveryParty extends opaque<PeppolDeliveryParty>()(
23
+ export class PeppolDeliveryParty extends opaque<PeppolDeliveryParty>()(
24
24
  Schema.Struct({
25
25
  /**
26
26
  * @summary PARTY NAME
@@ -31,7 +31,7 @@ class PeppolDeliveryParty extends opaque<PeppolDeliveryParty>()(
31
31
  })
32
32
  ) {}
33
33
 
34
- class PeppolDeliveryLocation extends opaque<PeppolDeliveryLocation>()(
34
+ export class PeppolDeliveryLocation extends opaque<PeppolDeliveryLocation>()(
35
35
  Schema.Struct({
36
36
  /**
37
37
  * @description An identifier for the location at which the goods and services are delivered.
@@ -7,7 +7,7 @@ import { opaque } from '#/schemas/utils/opaque.ts';
7
7
  import { icdCodesSchema } from '#/schemas/values/icd-codes-schema.ts';
8
8
  import { peppolCountryCodeSchema } from '#/schemas/values/peppol-country-code-schema.ts';
9
9
 
10
- class PeppolAdditionalItemProperties extends opaque<PeppolAdditionalItemProperties>()(
10
+ export class PeppolAdditionalItemProperties extends opaque<PeppolAdditionalItemProperties>()(
11
11
  Schema.Struct({
12
12
  /**
13
13
  * @description The name of the attribute or property of the item.
@@ -28,7 +28,7 @@ class PeppolAdditionalItemProperties extends opaque<PeppolAdditionalItemProperti
28
28
  })
29
29
  ) {}
30
30
 
31
- class PeppolCommodityClassifications extends opaque<PeppolCommodityClassifications>()(
31
+ export class PeppolCommodityClassifications extends opaque<PeppolCommodityClassifications>()(
32
32
  Schema.Struct({
33
33
  /**
34
34
  * @description A code for classifying the item by its type or nature.
@@ -44,7 +44,7 @@ class PeppolCommodityClassifications extends opaque<PeppolCommodityClassificatio
44
44
  })
45
45
  ) {}
46
46
 
47
- class PeppolOriginCountryCode extends opaque<PeppolOriginCountryCode>()(
47
+ export class PeppolOriginCountryCode extends opaque<PeppolOriginCountryCode>()(
48
48
  Schema.Struct({
49
49
  /**
50
50
  * @description The code identifying the country from which the item originates.
@@ -57,7 +57,7 @@ class PeppolOriginCountryCode extends opaque<PeppolOriginCountryCode>()(
57
57
  })
58
58
  ) {}
59
59
 
60
- class PeppolStandardItemIdentification extends opaque<PeppolStandardItemIdentification>()(
60
+ export class PeppolStandardItemIdentification extends opaque<PeppolStandardItemIdentification>()(
61
61
  Schema.Struct({
62
62
  /**
63
63
  * @description An item identifier based on a registered scheme.
@@ -89,7 +89,7 @@ class PeppolStandardItemIdentification extends opaque<PeppolStandardItemIdentifi
89
89
  })
90
90
  ) {}
91
91
 
92
- class PeppolSellersItemIdentification extends opaque<PeppolSellersItemIdentification>()(
92
+ export class PeppolSellersItemIdentification extends opaque<PeppolSellersItemIdentification>()(
93
93
  Schema.Struct({
94
94
  /**
95
95
  * @description An identifier, assigned by the Seller, for the item.
@@ -105,7 +105,7 @@ class PeppolSellersItemIdentification extends opaque<PeppolSellersItemIdentifica
105
105
  })
106
106
  ) {}
107
107
 
108
- class PeppolBuyersItemIdentification extends opaque<PeppolBuyersItemIdentification>()(
108
+ export class PeppolBuyersItemIdentification extends opaque<PeppolBuyersItemIdentification>()(
109
109
  Schema.Struct({
110
110
  /**
111
111
  * @description An identifier, assigned by the Buyer, for the item.
@@ -4,7 +4,7 @@ import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
4
4
  import { opaque } from '#/schemas/utils/opaque.ts';
5
5
  import { paymentMeansCodeSchema } from '#/schemas/values/payment-means-code-schema.ts';
6
6
 
7
- class PeppolPaymentMandatePayerFinancialAccountId extends opaque<PeppolPaymentMandatePayerFinancialAccountId>()(
7
+ export class PeppolPaymentMandatePayerFinancialAccountId extends opaque<PeppolPaymentMandatePayerFinancialAccountId>()(
8
8
  Schema.Struct({
9
9
  /**
10
10
  * @description The account to be debited by the direct debit.
@@ -20,7 +20,7 @@ class PeppolPaymentMandatePayerFinancialAccountId extends opaque<PeppolPaymentMa
20
20
  })
21
21
  ) {}
22
22
 
23
- class PeppolPaymentMandate extends opaque<PeppolPaymentMandate>()(
23
+ export class PeppolPaymentMandate extends opaque<PeppolPaymentMandate>()(
24
24
  Schema.Struct({
25
25
  /**
26
26
  * @description Unique identifier assigned by the Payee for referencing the direct debit mandate. Used in order to pre-notify the Buyer of a SEPA direct debit.
@@ -44,7 +44,7 @@ class PeppolPaymentMandate extends opaque<PeppolPaymentMandate>()(
44
44
  })
45
45
  ) {}
46
46
 
47
- class PeppolPayeeFinancialAccountFinancialInstitutionBranch extends opaque<PeppolPayeeFinancialAccountFinancialInstitutionBranch>()(
47
+ export class PeppolPayeeFinancialAccountFinancialInstitutionBranch extends opaque<PeppolPayeeFinancialAccountFinancialInstitutionBranch>()(
48
48
  Schema.Struct({
49
49
  /**
50
50
  * @description An identifier for the payment service provider where a payment account is located. Such as a BIC or a national clearing code where required. No
@@ -61,7 +61,7 @@ class PeppolPayeeFinancialAccountFinancialInstitutionBranch extends opaque<Peppo
61
61
  })
62
62
  ) {}
63
63
 
64
- class PeppolPayeeFinancialAccount extends opaque<PeppolPayeeFinancialAccount>()(
64
+ export class PeppolPayeeFinancialAccount extends opaque<PeppolPayeeFinancialAccount>()(
65
65
  Schema.Struct({
66
66
  /**
67
67
  * @description An identifier for the payment service provider where a payment account is located. Such as a BIC or a national clearing code where required. No
@@ -94,7 +94,7 @@ class PeppolPayeeFinancialAccount extends opaque<PeppolPayeeFinancialAccount>()(
94
94
  })
95
95
  ) {}
96
96
 
97
- class PeppolCardAccount extends opaque<PeppolCardAccount>()(
97
+ export class PeppolCardAccount extends opaque<PeppolCardAccount>()(
98
98
  Schema.Struct({
99
99
  /**
100
100
  * @description The name of the payment card holder.
@@ -125,7 +125,7 @@ class PeppolCardAccount extends opaque<PeppolCardAccount>()(
125
125
  })
126
126
  ) {}
127
127
 
128
- class PeppolPaymentMeansCode extends opaque<PeppolPaymentMeansCode>()(
128
+ export class PeppolPaymentMeansCode extends opaque<PeppolPaymentMeansCode>()(
129
129
  Schema.Struct({
130
130
  /**
131
131
  * @description The means, expressed as code, for how a payment is expected to be or has been settled.
@@ -2,7 +2,7 @@ import { Schema } from 'effect';
2
2
 
3
3
  import { opaque } from '#/schemas/utils/opaque.ts';
4
4
 
5
- class PeppolReferenceId extends opaque<PeppolReferenceId>()(Schema.Struct({ id: Schema.String })) {}
5
+ export class PeppolReferenceId extends opaque<PeppolReferenceId>()(Schema.Struct({ id: Schema.String })) {}
6
6
 
7
7
  export const peppolReferenceSchema = Schema.Union([PeppolReferenceId, Schema.Undefined]);
8
8
 
@@ -3,7 +3,7 @@ import { Schema } from 'effect';
3
3
  import { opaque } from '#/schemas/utils/opaque.ts';
4
4
  import { applicationResponseTypeCodeSchema } from '#/schemas/values/application-response-type-code-schema.ts';
5
5
 
6
- class PeppolStatus extends opaque<PeppolStatus>()(
6
+ export class PeppolStatus extends opaque<PeppolStatus>()(
7
7
  Schema.Struct({
8
8
  /**
9
9
  * @description A codified version of the issue description that describes the nature of the issue. e.g. Syntax violation, business rule violation, ...
@@ -3,7 +3,7 @@ import { Schema } from 'effect';
3
3
  import { PeppolDocumentResponseLineResponseContent } from '#/schemas/peppol-document-response-line-response-content-schema.ts';
4
4
  import { opaque } from '#/schemas/utils/opaque.ts';
5
5
 
6
- class PeppolLineReference extends opaque<PeppolLineReference>()(
6
+ export class PeppolLineReference extends opaque<PeppolLineReference>()(
7
7
  Schema.Struct({
8
8
  /**
9
9
  * @description Identifies the section of the document to which the reported issue applied. The LineID element mustbe used to indicate where in the business
@@ -84,7 +84,6 @@ const encodeDocumentXml = Effect.fn('encode-peppol-document-xml')(function* (val
84
84
  content = yield* encodeInvoiceResponse(value as never);
85
85
  } else {
86
86
  const rootNodes = Object.keys(value);
87
- console.log(value, isPeppolInvoice(value), isPeppolCreditNote(value), isPeppolMessageLevelResponse(value), isPeppolInvoiceResponse(value));
88
87
  return yield* Effect.fail(
89
88
  new SchemaIssue.InvalidValue({ message: `Unsupported document type: ${value.profileId}\n${rootNodes.join(',')}` }, value, options)
90
89
  );
@@ -6,7 +6,7 @@ import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
6
6
  import { opaque } from '#/schemas/utils/opaque.ts';
7
7
  import { invoiceTypeCodeSchema } from '#/schemas/values/invoice-type-code-schema.ts';
8
8
 
9
- class PeppolProjectReference extends opaque<PeppolProjectReference>()(Schema.Struct({ id: Schema.String })) {}
9
+ export class PeppolProjectReference extends opaque<PeppolProjectReference>()(Schema.Struct({ id: Schema.String })) {}
10
10
 
11
11
  export class PeppolInvoice extends opaque<PeppolInvoice>()(
12
12
  Schema.Struct({
@@ -1,4 +1,4 @@
1
- import { Clock, Option, DateTime, Effect, Predicate, Schema, SchemaGetter, SchemaIssue, SchemaParser } from 'effect';
1
+ import { Clock, Option, DateTime, Effect, Predicate, Schema, SchemaGetter, SchemaIssue } from 'effect';
2
2
 
3
3
  import { formatXsdTime } from '#/schemas/utils/format-xsd-time.ts';
4
4
  import { opaque } from '#/schemas/utils/opaque.ts';
@@ -6,12 +6,13 @@ import { opaque } from '#/schemas/utils/opaque.ts';
6
6
  const timeRegex =
7
7
  /^(?<hours>[01]\d|2[0-3]):(?<minutes>[0-5]\d):(?<seconds>[0-5]\d)(?<nanoseconds>\.\d{1,9})?(?<tz>(?:Z|-0[1-9]|-1\d|-2[0-3]|-00:?(?:0[1-9]|[1-5]\d)|\+[01]\d|\+2[0-3])?(?:|:?[0-5]\d))$/;
8
8
  const timeZoneRegex = /^(?:(?<utc>Z)|[-+](?<hours>0[1-9]|1\d|2[0-3]|00):?(?<minutes>[0-5]\d))$/;
9
- const numberFromString = SchemaParser.decodeSync(
10
- Schema.UndefinedOr(Schema.String.pipe(Schema.withDecodingDefault(Effect.succeed('0')))).pipe(
11
- Schema.decodeTo(Schema.Number, { encode: SchemaGetter.String(), decode: SchemaGetter.Number() }),
12
- Schema.catchDecoding(() => Effect.succeedSome(0))
13
- )
14
- );
9
+ const numberFromString = (value: string | undefined): number => {
10
+ if (value === undefined) {
11
+ return 0;
12
+ }
13
+ const parsed = Number(value);
14
+ return Number.isFinite(parsed) ? parsed : 0;
15
+ };
15
16
 
16
17
  /**
17
18
  * @description Parse a timezone offset from a string. The string must be in the format `(+|-)HH:MM` where `HH` and `MM` are two digits.
@@ -1,9 +1,8 @@
1
- import { Schema } from 'effect';
1
+ import { DateTime } from 'effect';
2
2
 
3
3
  import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
4
4
  import type { SchematronRule } from '#/schematron/helpers.ts';
5
5
 
6
- import { PeppolIsoDateString } from '#/schemas/peppol-iso-date-string.ts';
7
6
  import { getSupplierCountry, schematronRule } from '#/schematron/helpers.ts';
8
7
 
9
8
  const rule = {
@@ -13,7 +12,15 @@ const rule = {
13
12
  } as const satisfies SchematronRule;
14
13
 
15
14
  const DATE_REGEX = /^(0?[1-9]|[12][0-9]|3[01])[-/]?(0?[1-9]|1[0-2])[-/]?((?:19|20)[0-9]{2})$/;
16
- const encodeDateSync = Schema.encodeSync(PeppolIsoDateString);
15
+ const formatIssueDate = (value: unknown): string => {
16
+ if (typeof value === 'string') {
17
+ return value;
18
+ }
19
+ if (DateTime.isDateTime(value)) {
20
+ return DateTime.formatIsoDate(value);
21
+ }
22
+ return String(value);
23
+ };
17
24
 
18
25
  function evaluateGrR001_3(document: PeppolDocument): boolean {
19
26
  if (getSupplierCountry(document) !== 'GR' && getSupplierCountry(document) !== 'EL') {
@@ -29,7 +36,7 @@ function evaluateGrR001_3(document: PeppolDocument): boolean {
29
36
  return false;
30
37
  }
31
38
  const [, day, month, year] = dateMatch;
32
- const issueDate = encodeDateSync(document.issueDate);
39
+ const issueDate = formatIssueDate(document.issueDate);
33
40
  const issueDateSegments = issueDate.split('-');
34
41
  return day === issueDateSegments[2] && month === issueDateSegments[1] && year === issueDateSegments[0];
35
42
  }
@@ -1,4 +1,4 @@
1
- import { Predicate, Schema } from 'effect';
1
+ import { DateTime, Predicate, Schema } from 'effect';
2
2
 
3
3
  import type { PeppolDocument } from '#/schemas/peppol-document-schema.ts';
4
4
  import type { SchematronRule } from '#/schematron/helpers.ts';
@@ -12,7 +12,12 @@ const DATE_REGEX = /^\d{4}-\d{2}-\d{2}$/;
12
12
 
13
13
  const isValidDate = (value: string | undefined): boolean => value === undefined || (DATE_REGEX.test(value) && !Number.isNaN(Date.parse(value)));
14
14
 
15
- const encodeDateSync = Schema.encodeSync(Schema.Union([PeppolIsoDateString, Schema.String]));
15
+ const formatDate = (value: PeppolIsoDateString | string): string => {
16
+ if (typeof value === 'string') {
17
+ return value;
18
+ }
19
+ return DateTime.formatIsoDate(value);
20
+ };
16
21
  const isDate = Schema.is(PeppolIsoDateString);
17
22
 
18
23
  const collectDates = (document: PeppolDocument): Array<string> => {
@@ -24,9 +29,9 @@ const collectDates = (document: PeppolDocument): Array<string> => {
24
29
  ...getLines(document).flatMap(line => [line.invoicePeriod?.startDate, line.invoicePeriod?.endDate]),
25
30
  ].filter((date): date is string => date !== undefined);
26
31
 
27
- const dates = [document.issueDate, ...optionalDates].map(date => encodeDateSync(date));
32
+ const dates = [document.issueDate, ...optionalDates].map(date => formatDate(date));
28
33
  if (Predicate.hasProperty(document, 'dueDate') && isDate(document.dueDate)) {
29
- dates.push(encodeDateSync(document.dueDate));
34
+ dates.push(formatDate(document.dueDate));
30
35
  }
31
36
  return dates;
32
37
  };
@@ -4,6 +4,8 @@ import { XMLParser } from '@nodable/flexible-xml-parser';
4
4
 
5
5
  import type { XmlNode } from '#/helpers/get-prop.ts';
6
6
 
7
+ export type { XmlNode } from '#/helpers/get-prop.ts';
8
+
7
9
  const numberParser = new NumberValueParser({ eNotation: true, hex: false, leadingZeros: false });
8
10
 
9
11
  const compactFactory = new CompactBuilderFactory({
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CiW698HY.d.ts","names":[],"sources":["../src/schemas/utils/opaque.ts","../src/schemas/peppol-iso-date-string.ts","../src/schemas/fields/peppol-amount-schema.ts","../src/schemas/fields/peppol-allowance-charge-schema.ts","../src/schemas/fields/peppol-binary-object-schema.ts","../src/schemas/fields/peppol-additional-document-reference-schema.ts","../src/schemas/fields/peppol-billing-reference-schema.ts","../src/schemas/fields/peppol-address-schema.ts","../src/schemas/fields/peppol-delivery-schema.ts","../src/schemas/fields/peppol-invoice-period-schema.ts","../src/schemas/fields/peppol-legal-monetary-total-schema.ts","../src/schemas/fields/peppol-order-reference-schema.ts","../src/schemas/fields/peppol-contact-schema.ts","../src/schemas/fields/peppol-identifier-schema.ts","../src/schemas/fields/peppol-party-legal-entity-schema.ts","../src/schemas/fields/peppol-party-tax-scheme-schema.ts","../src/schemas/fields/peppol-party-base-schema.ts","../src/schemas/fields/peppol-payee-party-schema.ts","../src/schemas/fields/peppol-payment-means-schema.ts","../src/schemas/fields/peppol-payment-terms-schema.ts","../src/schemas/fields/peppol-tax-representative-schema.ts","../src/schemas/fields/peppol-tax-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-category-schema.ts","../src/schemas/fields/peppol-tax-subtotal-schema.ts","../src/schemas/fields/peppol-tax-totals-base-schema.ts","../src/schemas/peppol-billing-base-schema.ts","../src/schemas/fields/peppol-line-allowance-charge-schema.ts","../src/schemas/fields/peppol-invoice-line-period-schema.ts","../src/schemas/fields/peppol-item-classification-schema.ts","../src/schemas/fields/peppol-line-item-schema.ts","../src/schemas/fields/peppol-line-price-allowance-charge-schema.ts","../src/schemas/fields/peppol-quantity-schema.ts","../src/schemas/fields/peppol-line-price-schema.ts","../src/schemas/fields/peppol-base-line-schema.ts","../src/schemas/fields/peppol-invoice-line-schema.ts","../src/schemas/peppol-invoice-schema.ts","../src/schemas/fields/peppol-credit-note-line-schema.ts","../src/schemas/peppol-credit-note-schema.ts","../src/schemas/peppol-message-level-response-party-schema.ts","../src/schemas/peppol-document-response-document-reference-schema.ts","../src/schemas/peppol-document-response-document-schema.ts","../src/schemas/peppol-document-response-line-response-content-schema.ts","../src/schemas/peppol-document-response-line-response-schema.ts","../src/schemas/peppol-message-level-response-document-response-schema.ts","../src/schemas/utils/peppol-xsd-time-schema.ts","../src/schemas/peppol-message-level-response-schema.ts","../src/schemas/peppol-invoice-response-status-reason-code-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-status-schema.ts","../src/schemas/peppol-invoice-response-document-actual-response-schema.ts","../src/schemas/utils/peppol-base-64-schema.ts","../src/schemas/utils/format-quantity-with-unit.ts","../src/schemas/values/credit-note-type-code-schema.ts","../src/schemas/utils/get-credit-note-type-code-description.ts","../src/schemas/values/invoice-type-code-schema.ts","../src/schemas/utils/get-invoice-type-code-description.ts","../src/schemas/utils/is-valid-credit-note-type-code.ts","../src/schemas/utils/is-valid-invoice-type-code.ts","../src/schemas/values/peppol-process-schema.ts","../src/schemas/utils/is-valid-process.ts","../src/schemas/values/quantity-unit-codes-schema.ts","../src/schemas/utils/quantity-unit-code-to-intl-unit.ts","../src/schemas/utils/peppol-vat-regex-schema.ts","../src/schemas/peppol-invoice-response-schema.ts","../src/schemas/peppol-document-schema.ts","../src/schemas/fields/default-customization-id.ts","../src/schemas/fields/default-profile-id.ts","../src/schemas/fields/peppol-reference-schema.ts","../src/schemas/values/additional-document-reference-code-schema.ts","../src/schemas/values/allowance-charge-reason-code-schema.ts","../src/schemas/values/application-response-type-code-schema.ts","../src/schemas/values/charge-reason-code-schema.ts","../src/schemas/values/peppol-country-code-schema.ts","../src/schemas/values/currency-code-schema.ts","../src/schemas/values/peppol-document-type-code-schema.ts","../src/schemas/values/peppol-document-type-schema.ts","../src/schemas/values/document-type-schemes-schema.ts","../src/schemas/values/document-type-values-schema.ts","../src/schemas/values/duty-tax-fee-category-schema.ts","../src/schemas/values/electronic-codes-schema.ts","../src/schemas/values/icd-codes-schema.ts","../src/schemas/values/invoice-status-code-schema.ts","../src/schemas/values/item-classification-codes-schema.ts","../src/schemas/values/mime-codes-schema.ts","../src/schemas/values/op-status-action-schema.ts","../src/schemas/values/op-status-reason-schema.ts","../src/schemas/values/participant-identifier-code-schema.ts","../src/schemas/values/payment-means-code-schema.ts","../src/schemas/values/process-from-document-type-schema.ts","../src/schemas/values/vatex-code-schema.ts","../src/schemas/values/vat-date-code-schema.ts"],"mappings":";;;;;;;;KAOY,aAAa,MAAM,UAAU,OAAO,OAAO,OAAO,OAAO,MAAM,SAAS,KAAK,SAAS,OAAO;;;;;;;;;;;;cCK5F,4BAA4B;;;;;;;;;;;;;;;;;;cCF5B,qBAAqB;UAYjB,4BAA4B,OAAO,MAAM,eAAe;;;;;;;;;;;cCb5D,qCAAqC;;;;;;;;;;;;;;;;;;cAWrC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC5B,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBxB,qBAAqB;;;;;;cAuBrB,6BAA2B,OAAA,uBAAA,wBAAA;KAE5B,wBAAwB,OAAO,OAAO,YAAY;KAClD,+BAA+B,OAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCxF1D,2BAA2B;;;;;;;;;;;;;;;;;cCRlC,0CAA0C;;;;;;;;;;;;;;;;;;;;;;cAiB1C,yBAAyB;;;;;;;;;;;;;;;;;;;;cAwBzB,iBAAiB;;;;;;;;;;;;;;;;;cA+BV,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;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