@use-stall/types 0.0.9 → 0.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
@@ -1,14 +1,11 @@
1
1
  export interface OrganizationType {
2
+ id: string;
2
3
  business_type: string;
3
4
  organization_name: string;
4
5
  organization_size: number | string;
5
6
  base_currency: string;
6
7
  business_address: string;
7
8
  owner: string;
8
- locations: string[]; // redudant field, Maximum is 30
9
- id: string;
10
- created_at: number;
11
- updated_at?: number;
12
9
  active: boolean;
13
10
  subscription?: {
14
11
  last_payment_id: string;
@@ -21,26 +18,15 @@ export interface OrganizationType {
21
18
  product: string;
22
19
  subscription: string;
23
20
  };
24
- logo?: string;
25
- connector?: { id: string; config: { [key: string]: string } };
26
- receipt_config?: ReceiptType;
27
- taxes?: {
28
- default_tax_region: UnifiedTaxRegionType;
29
- };
30
- stall_modules?: OrganizationStallModulesType;
31
- }
32
-
33
- export interface OrganizationStallModulesType {
34
- locations: boolean;
35
- collections: boolean;
36
- suppliers: boolean;
37
- purchase_orders: boolean;
38
- discounts: boolean;
39
- taxes: boolean;
40
- chart_of_accounts: boolean;
41
- transactions: boolean;
42
- invoices: boolean;
43
- bills: boolean;
21
+ logo: string;
22
+ integrations: {
23
+ connector: boolean;
24
+ payments: boolean;
25
+ fulfillments: boolean;
26
+ fiscalizations: boolean;
27
+ }
28
+ created_at: number;
29
+ updated_at: number;
44
30
  }
45
31
 
46
32
  export interface ReceiptType {