@bizmap/sdk 0.0.6 → 0.0.7

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/main.d.ts CHANGED
@@ -28,10 +28,11 @@ type PriceTag = z.infer<typeof PriceTag>;
28
28
  declare const CompanyIdentity: z.ZodObject<{
29
29
  createdAt: z.ZodReadonly<z.ZodNumber>;
30
30
  lastModified: z.ZodNullable<z.ZodNumber>;
31
- uid: z.ZodString;
31
+ uid: z.ZodReadonly<z.ZodString>;
32
32
  displayName: z.ZodString;
33
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ logo: z.ZodOptional<z.ZodString>;
34
34
  slogan: z.ZodString;
35
+ regNo: z.ZodReadonly<z.ZodString>;
35
36
  email: z.ZodEmail;
36
37
  address: z.ZodRecord<z.ZodEnum<{
37
38
  streetAddress: "streetAddress";
@@ -40,6 +41,8 @@ declare const CompanyIdentity: z.ZodObject<{
40
41
  country: "country";
41
42
  }>, z.ZodString>;
42
43
  phoneNumber: z.ZodOptional<z.ZodString>;
44
+ trn: z.ZodOptional<z.ZodString>;
45
+ gctRegNo: z.ZodOptional<z.ZodString>;
43
46
  }, z.core.$strip>;
44
47
  type CompanyIdentity = z.infer<typeof CompanyIdentity>;
45
48
  declare const CompanyOpState: z.ZodObject<{
@@ -73,11 +76,9 @@ declare const CompanyBillingModel: z.ZodObject<{
73
76
  createdAt: z.ZodReadonly<z.ZodNumber>;
74
77
  lastModified: z.ZodNullable<z.ZodNumber>;
75
78
  uid: z.ZodString;
76
- trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
- gctRegNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- billingProvider: z.ZodEnum<{
79
+ biller: z.ZodEnum<{
79
80
  doc: "doc";
80
- physAsst: "physAsst";
81
+ fdc: "fdc";
81
82
  }>;
82
83
  primaryCurrency: z.ZodEnum<{
83
84
  JMD: "JMD";
@@ -96,13 +97,13 @@ declare const CompanyBillingModel: z.ZodObject<{
96
97
  fixedAmount: z.ZodNumber;
97
98
  percentage: z.ZodNumber;
98
99
  }, z.core.$strip>>>;
99
- services: z.ZodArray<z.ZodObject<{
100
+ services: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
101
  createdAt: z.ZodReadonly<z.ZodNumber>;
101
102
  lastModified: z.ZodNullable<z.ZodNumber>;
102
103
  uid: z.ZodString;
103
104
  name: z.ZodString;
104
105
  cost: z.ZodNumber;
105
- }, z.core.$strip>>;
106
+ }, z.core.$strip>>>;
106
107
  acceptedCurrencies: z.ZodArray<z.ZodEnum<{
107
108
  JMD: "JMD";
108
109
  }>>;
@@ -184,10 +185,11 @@ declare const UserCompaniesDTO: z.ZodObject<{
184
185
  companies: z.ZodArray<z.ZodObject<{
185
186
  createdAt: z.ZodReadonly<z.ZodNumber>;
186
187
  lastModified: z.ZodNullable<z.ZodNumber>;
187
- uid: z.ZodString;
188
+ uid: z.ZodReadonly<z.ZodString>;
188
189
  displayName: z.ZodString;
189
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ logo: z.ZodOptional<z.ZodString>;
190
191
  slogan: z.ZodString;
192
+ regNo: z.ZodReadonly<z.ZodString>;
191
193
  email: z.ZodEmail;
192
194
  address: z.ZodRecord<z.ZodEnum<{
193
195
  streetAddress: "streetAddress";
@@ -196,6 +198,8 @@ declare const UserCompaniesDTO: z.ZodObject<{
196
198
  country: "country";
197
199
  }>, z.ZodString>;
198
200
  phoneNumber: z.ZodOptional<z.ZodString>;
201
+ trn: z.ZodOptional<z.ZodString>;
202
+ gctRegNo: z.ZodOptional<z.ZodString>;
199
203
  }, z.core.$strip>>;
200
204
  }, z.core.$strip>;
201
205
  type UserCompaniesDTO = z.infer<typeof UserCompaniesDTO>;
package/dist/main.js CHANGED
@@ -74,14 +74,21 @@ var employeeRoles = companyUserRoles.exclude(["admin"]);
74
74
 
75
75
  // src/schemas/Company.ts
76
76
  var CompanyIdentity = z4.object({
77
+ uid: z4.string().readonly(),
77
78
  // The company's uid
78
- uid: z4.string(),
79
+ // Organizational
79
80
  displayName: z4.string(),
80
- logo: z4.string().nullish(),
81
+ logo: z4.string().optional(),
81
82
  slogan: z4.string(),
83
+ regNo: z4.string().readonly(),
84
+ // The company's registration number
85
+ // Social
82
86
  email: z4.email(),
83
87
  address: Address,
84
88
  phoneNumber: PhoneNumber.optional(),
89
+ // Legal
90
+ trn: z4.string().optional(),
91
+ gctRegNo: z4.string().optional(),
85
92
  ...TimeLog.shape
86
93
  });
87
94
  var CompanyOpState = z4.object({
@@ -114,13 +121,12 @@ var CompanyPreferences = z4.object({
114
121
  });
115
122
  var CompanyBillingModel = z4.object({
116
123
  uid: z4.string(),
117
- trn: z4.string().nullish(),
118
- gctRegNo: z4.string().nullish(),
119
- billingProvider: companyUserRoles.extract(["doc", "physAsst"]),
124
+ /** The user that provides the bill to the client */
125
+ biller: companyUserRoles.extract(["doc", "fdc"]),
120
126
  primaryCurrency: currencies,
121
127
  additionalFees: z4.array(PriceAdjustment).optional(),
122
128
  discounts: z4.array(PriceAdjustment).optional(),
123
- services: z4.array(PriceTag),
129
+ services: z4.array(PriceTag).optional(),
124
130
  acceptedCurrencies: z4.array(currencies),
125
131
  ...TimeLog.shape
126
132
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",