taxdrop-core 1.0.0 → 1.0.1
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/document-types.js +51 -0
- package/package.json +4 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document type constants.
|
|
3
|
+
* Defines all valid document types in the system.
|
|
4
|
+
*
|
|
5
|
+
* @module document-types.constants
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Document type enum values.
|
|
10
|
+
* These are the internal document type identifiers used throughout the system.
|
|
11
|
+
*
|
|
12
|
+
* @readonly
|
|
13
|
+
* @enum {string}
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export const LEGAL_DOCUMENT_TYPES = Object.freeze({
|
|
17
|
+
RECEIPT: 'receipt',
|
|
18
|
+
TAX_INVOICE: 'tax_invoice',
|
|
19
|
+
CREDIT_INVOICE: 'credit_invoice',
|
|
20
|
+
PAYMENT_REQUEST: 'payment_request',
|
|
21
|
+
TAX_INVOICE_RECEIPT: 'tax_invoice_receipt',
|
|
22
|
+
})
|
|
23
|
+
/**
|
|
24
|
+
* Document type enum values.
|
|
25
|
+
* These are the internal document type identifiers used throughout the system.
|
|
26
|
+
*
|
|
27
|
+
* @readonly
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
export const OPERATIONAL_DOCUMENT_TYPES = Object.freeze({
|
|
32
|
+
ORDER: 'order',
|
|
33
|
+
QUOTE: 'quote',
|
|
34
|
+
INVOICE: 'invoice',
|
|
35
|
+
DELIVERY_NOTE: 'delivery_note',
|
|
36
|
+
PURCHASE_ORDER: 'purchase_order',
|
|
37
|
+
PROFORMA_INVOICE: 'proforma_invoice',
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Document type enum values.
|
|
42
|
+
* These are the internal document type identifiers used throughout the system.
|
|
43
|
+
*
|
|
44
|
+
* @readonly
|
|
45
|
+
* @enum {string}
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
export const DOCUMENT_TYPES = Object.freeze({
|
|
49
|
+
...LEGAL_DOCUMENT_TYPES,
|
|
50
|
+
...OPERATIONAL_DOCUMENT_TYPES,
|
|
51
|
+
})
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taxdrop-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"type":"module",
|
|
6
|
+
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "",
|
|
16
|
-
"license": "ISC",
|
|
16
|
+
"license": "ISC",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/fchange-ltd/taxdrop-core/issues"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/fchange-ltd/taxdrop-core#readme",
|
|
21
|
-
|
|
21
|
+
"exports": {
|
|
22
22
|
".": "./src/index.js"
|
|
23
23
|
}
|
|
24
24
|
}
|