@provis/provis-common-be-module 2.5.28 → 2.5.29

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.
@@ -1,28 +1,31 @@
1
1
  export declare const invoiceStatusCode: {
2
- INITIAL: {
3
- code: number;
4
- name: string;
2
+ readonly INITIAL: {
3
+ readonly code: 0;
4
+ readonly name: "Initial";
5
5
  };
6
- SUBMIT: {
7
- code: number;
8
- name: string;
6
+ readonly PAID: {
7
+ readonly code: 100;
8
+ readonly name: "Paid";
9
9
  };
10
- PAID: {
11
- code: number;
12
- name: string;
10
+ readonly SUBMIT: {
11
+ readonly code: 200;
12
+ readonly name: "Submit";
13
13
  };
14
- CANCEL: {
15
- code: number;
16
- name: string;
14
+ readonly CANCEL: {
15
+ readonly code: 300;
16
+ readonly name: "Cancel";
17
17
  };
18
- EXPIRED: {
19
- code: number;
20
- name: string;
18
+ readonly EXPIRED: {
19
+ readonly code: 399;
20
+ readonly name: "Expired";
21
21
  };
22
22
  };
23
- export declare const invoiceinvoiceStatusCodeName: {
24
- [invoiceStatusCode.INITIAL.code]: string;
25
- [invoiceStatusCode.SUBMIT.code]: string;
26
- [invoiceStatusCode.CANCEL.code]: string;
27
- [invoiceStatusCode.EXPIRED.code]: string;
23
+ type InvoiceStatusCode = typeof invoiceStatusCode[keyof typeof invoiceStatusCode]['code'];
24
+ type InvoiceStatusNameMap = {
25
+ [key in InvoiceStatusCode]: string;
28
26
  };
27
+ export declare const invoiceinvoiceStatusCodeName: InvoiceStatusNameMap;
28
+ export interface InvoiceWithStatus {
29
+ status: InvoiceStatusCode;
30
+ }
31
+ export {};
@@ -6,11 +6,11 @@ exports.invoiceStatusCode = {
6
6
  code: 0,
7
7
  name: 'Initial',
8
8
  },
9
- SUBMIT: {
9
+ PAID: {
10
10
  code: 100,
11
11
  name: 'Paid',
12
12
  },
13
- PAID: {
13
+ SUBMIT: {
14
14
  code: 200,
15
15
  name: 'Submit',
16
16
  },
@@ -25,6 +25,7 @@ exports.invoiceStatusCode = {
25
25
  };
26
26
  exports.invoiceinvoiceStatusCodeName = {
27
27
  [exports.invoiceStatusCode.INITIAL.code]: exports.invoiceStatusCode.INITIAL.name,
28
+ [exports.invoiceStatusCode.PAID.code]: exports.invoiceStatusCode.PAID.name,
28
29
  [exports.invoiceStatusCode.SUBMIT.code]: exports.invoiceStatusCode.SUBMIT.name,
29
30
  [exports.invoiceStatusCode.CANCEL.code]: exports.invoiceStatusCode.CANCEL.name,
30
31
  [exports.invoiceStatusCode.EXPIRED.code]: exports.invoiceStatusCode.EXPIRED.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provis/provis-common-be-module",
3
- "version": "2.5.28",
3
+ "version": "2.5.29",
4
4
  "description": "This common module for Provis internal backend use lib",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {