@openbox/shared-types 0.3.80 → 0.3.82

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.
@@ -24,19 +24,14 @@ export type LoggedUserInfoWorkspaceCompanyType = {
24
24
  id: number;
25
25
  name: string;
26
26
  };
27
- export type LoggedUserInfoWorkspaceCompanySVFields = {
28
- nit: string;
29
- nrc: string;
30
- dui: string;
31
- };
32
27
  export type LoggedUserInfoWorkspaceCompany = {
33
28
  id: string;
34
29
  unique: string;
35
30
  name: string;
36
31
  companyType: LoggedUserInfoWorkspaceCompanyType | null;
37
32
  naturalType: LoggedUserInfoWorkspaceCompanyType | null;
38
- SVFields: LoggedUserInfoWorkspaceCompanySVFields | null;
39
- enableElectronicInvoicing: boolean;
33
+ nit: string;
34
+ nrc: string;
40
35
  };
41
36
  export type LoggedUserInfoWorkspaceBranch = {
42
37
  id: string;
@@ -7,6 +7,7 @@ export type InvoicesCreateSingleHeader = {
7
7
  customerBranch: string;
8
8
  invoicesPaymentsCondition: string;
9
9
  invoicesSeller: string;
10
+ copyFrom?: string;
10
11
  };
11
12
  export type InvoicesCreateSingleTotals = {
12
13
  sum: number;
@@ -1,5 +1,5 @@
1
1
  import { InvoicesCreateSingleDetail, InvoicesCreateSingleHeader, InvoicesCreateSingleTotals } from '../CreateSingle/Request';
2
- export type InvoicesUpdateSingleHeader = Omit<InvoicesCreateSingleHeader, 'document' | 'authorization' | 'sequence'>;
2
+ export type InvoicesUpdateSingleHeader = Omit<InvoicesCreateSingleHeader, 'document' | 'authorization' | 'sequence' | 'copyFrom'>;
3
3
  export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals;
4
4
  export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail & {
5
5
  id: string;
@@ -1,21 +1,44 @@
1
1
  export declare const SystemModules: {
2
- Invoices: {
2
+ Services: {
3
3
  id: string;
4
4
  name: string;
5
+ section: {
6
+ main: string;
7
+ sellingTypes: string;
8
+ };
5
9
  };
6
- Accounting: {
10
+ Customers: {
7
11
  id: string;
8
12
  name: string;
13
+ section: {
14
+ main: string;
15
+ branches: string;
16
+ };
9
17
  };
10
- Services: {
18
+ Invoices: {
11
19
  id: string;
12
20
  name: string;
21
+ section: {
22
+ main: string;
23
+ documents: string;
24
+ paymentConditions: string;
25
+ reports: string;
26
+ sellers: string;
27
+ settings: string;
28
+ zones: string;
29
+ };
13
30
  };
14
- Providers: {
31
+ Accounting: {
15
32
  id: string;
16
33
  name: string;
34
+ section: {
35
+ main: string;
36
+ catalogs: string;
37
+ reports: string;
38
+ settings: string;
39
+ };
17
40
  };
18
- Customers: {
41
+ Providers: {
19
42
  id: string;
20
43
  name: string;
21
44
  };
@@ -2,16 +2,69 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SystemSellingTypesEnum = exports.SystemNaturalTypesEnum = exports.SystemPersonTypesEnum = exports.SystemTaxerTypesEnum = exports.SystemModules = void 0;
4
4
  exports.SystemModules = {
5
- Invoices: { id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4', name: 'Invoices' },
6
- Accounting: { id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8', name: 'Accounting' },
7
- Services: { id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167', name: 'Services' },
8
- Providers: { id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076', name: 'Providers' },
9
- Customers: { id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa', name: 'Customers' },
10
- Taxes: { id: '53a36e54-bab2-4824-9e43-b40efab8bab9', name: 'Taxes' },
11
- Echarges: { id: '09a5c668-ab54-441e-9fb2-d24b36ae202e', name: 'Echarges' },
12
- Purchases: { id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461', name: 'Purchases' },
13
- Receibable: { id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5', name: 'Receibable' },
14
- Legal: { id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae', name: 'Legal' },
5
+ Services: {
6
+ id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167',
7
+ name: 'Services',
8
+ section: {
9
+ main: 'services',
10
+ sellingTypes: 'selling-types',
11
+ },
12
+ },
13
+ Customers: {
14
+ id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa',
15
+ name: 'Customers',
16
+ section: {
17
+ main: 'customers',
18
+ branches: 'branches',
19
+ },
20
+ },
21
+ Invoices: {
22
+ id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4',
23
+ name: 'Invoices',
24
+ section: {
25
+ main: 'invoices',
26
+ documents: 'documents',
27
+ paymentConditions: 'payment-conditions',
28
+ reports: 'reports',
29
+ sellers: 'sellers',
30
+ settings: 'settings',
31
+ zones: 'zones',
32
+ },
33
+ },
34
+ Accounting: {
35
+ id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8',
36
+ name: 'Accounting',
37
+ section: {
38
+ main: 'entries',
39
+ catalogs: 'catalogs',
40
+ reports: 'reports',
41
+ settings: 'reports',
42
+ },
43
+ },
44
+ Providers: {
45
+ id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076',
46
+ name: 'Providers',
47
+ },
48
+ Taxes: {
49
+ id: '53a36e54-bab2-4824-9e43-b40efab8bab9',
50
+ name: 'Taxes',
51
+ },
52
+ Echarges: {
53
+ id: '09a5c668-ab54-441e-9fb2-d24b36ae202e',
54
+ name: 'Echarges',
55
+ },
56
+ Purchases: {
57
+ id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461',
58
+ name: 'Purchases',
59
+ },
60
+ Receibable: {
61
+ id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5',
62
+ name: 'Receibable',
63
+ },
64
+ Legal: {
65
+ id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae',
66
+ name: 'Legal',
67
+ },
15
68
  };
16
69
  var SystemTaxerTypesEnum;
17
70
  (function (SystemTaxerTypesEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":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ChB,+EAAc,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,YAAY,EAAE,eAAe;SAC9B;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,UAAU;SACrB;KACF;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,WAAW;YACtB,iBAAiB,EAAE,oBAAoB;YACvC,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf;KACF;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;CACF,CAAA;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iEAAS,CAAA;IACT,mEAAU,CAAA;IACV,iEAAS,CAAA;AACX,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,yEAAY,CAAA;IACZ,uEAAW,CAAA;IACX,6EAAc,CAAA;AAChB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mFAAgB,CAAA;IAChB,+EAAc,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.80",
3
+ "version": "0.3.82",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,14 +1,67 @@
1
1
  export const SystemModules = {
2
- Invoices: { id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4', name: 'Invoices' },
3
- Accounting: { id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8', name: 'Accounting' },
4
- Services: { id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167', name: 'Services' },
5
- Providers: { id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076', name: 'Providers' },
6
- Customers: { id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa', name: 'Customers' },
7
- Taxes: { id: '53a36e54-bab2-4824-9e43-b40efab8bab9', name: 'Taxes' },
8
- Echarges: { id: '09a5c668-ab54-441e-9fb2-d24b36ae202e', name: 'Echarges' },
9
- Purchases: { id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461', name: 'Purchases' },
10
- Receibable: { id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5', name: 'Receibable' },
11
- Legal: { id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae', name: 'Legal' },
2
+ Services: {
3
+ id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167',
4
+ name: 'Services',
5
+ section: {
6
+ main: 'services',
7
+ sellingTypes: 'selling-types',
8
+ },
9
+ },
10
+ Customers: {
11
+ id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa',
12
+ name: 'Customers',
13
+ section: {
14
+ main: 'customers',
15
+ branches: 'branches',
16
+ },
17
+ },
18
+ Invoices: {
19
+ id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4',
20
+ name: 'Invoices',
21
+ section: {
22
+ main: 'invoices',
23
+ documents: 'documents',
24
+ paymentConditions: 'payment-conditions',
25
+ reports: 'reports',
26
+ sellers: 'sellers',
27
+ settings: 'settings',
28
+ zones: 'zones',
29
+ },
30
+ },
31
+ Accounting: {
32
+ id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8',
33
+ name: 'Accounting',
34
+ section: {
35
+ main: 'entries',
36
+ catalogs: 'catalogs',
37
+ reports: 'reports',
38
+ settings: 'reports',
39
+ },
40
+ },
41
+ Providers: {
42
+ id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076',
43
+ name: 'Providers',
44
+ },
45
+ Taxes: {
46
+ id: '53a36e54-bab2-4824-9e43-b40efab8bab9',
47
+ name: 'Taxes',
48
+ },
49
+ Echarges: {
50
+ id: '09a5c668-ab54-441e-9fb2-d24b36ae202e',
51
+ name: 'Echarges',
52
+ },
53
+ Purchases: {
54
+ id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461',
55
+ name: 'Purchases',
56
+ },
57
+ Receibable: {
58
+ id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5',
59
+ name: 'Receibable',
60
+ },
61
+ Legal: {
62
+ id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae',
63
+ name: 'Legal',
64
+ },
12
65
  }
13
66
 
14
67
  export enum SystemTaxerTypesEnum {
@@ -28,20 +28,14 @@ export type LoggedUserInfoWorkspaceCompanyType = {
28
28
  name: string
29
29
  }
30
30
 
31
- export type LoggedUserInfoWorkspaceCompanySVFields = {
32
- nit: string
33
- nrc: string
34
- dui: string
35
- }
36
-
37
31
  export type LoggedUserInfoWorkspaceCompany = {
38
32
  id: string
39
33
  unique: string
40
34
  name: string
41
35
  companyType: LoggedUserInfoWorkspaceCompanyType | null
42
36
  naturalType: LoggedUserInfoWorkspaceCompanyType | null
43
- SVFields: LoggedUserInfoWorkspaceCompanySVFields | null
44
- enableElectronicInvoicing: boolean
37
+ nit: string
38
+ nrc: string
45
39
  }
46
40
 
47
41
  export type LoggedUserInfoWorkspaceBranch = {
@@ -7,6 +7,7 @@ export type InvoicesCreateSingleHeader = {
7
7
  customerBranch: string
8
8
  invoicesPaymentsCondition: string
9
9
  invoicesSeller: string
10
+ copyFrom?: string
10
11
  }
11
12
 
12
13
  export type InvoicesCreateSingleTotals = {
@@ -6,7 +6,7 @@ import {
6
6
 
7
7
  export type InvoicesUpdateSingleHeader = Omit<
8
8
  InvoicesCreateSingleHeader,
9
- 'document' | 'authorization' | 'sequence'
9
+ 'document' | 'authorization' | 'sequence' | 'copyFrom'
10
10
  >
11
11
 
12
12
  export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals