@bizmap/sdk 0.0.45 → 0.0.46

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
@@ -72,6 +72,15 @@ declare const CompanyDetails: z.ZodObject<{
72
72
  parish: z.ZodString;
73
73
  country: z.ZodString;
74
74
  }, z.core.$strip>;
75
+ tier: z.ZodObject<{
76
+ current: z.ZodDefault<z.ZodEnum<{
77
+ free: "free";
78
+ pro: "pro";
79
+ premium: "premium";
80
+ gold: "gold";
81
+ }>>;
82
+ lastModified: z.ZodNullable<z.ZodInt>;
83
+ }, z.core.$strip>;
75
84
  legal: z.ZodObject<{
76
85
  regNo: z.ZodReadonly<z.ZodString>;
77
86
  trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -111,38 +120,20 @@ declare const CompanyDetails: z.ZodObject<{
111
120
  }, z.core.$strip>>>>;
112
121
  state: z.ZodObject<{
113
122
  availableBalance: z.ZodObject<{
114
- value: z.ZodNumber;
123
+ current: z.ZodNumber;
115
124
  lastModified: z.ZodNullable<z.ZodInt>;
116
125
  }, z.core.$strip>;
117
126
  invoiceNoCounter: z.ZodInt;
118
127
  tktNoCounter: z.ZodInt;
119
- tier: z.ZodObject<{
120
- value: z.ZodDefault<z.ZodEnum<{
121
- free: "free";
122
- pro: "pro";
123
- premium: "premium";
124
- gold: "gold";
125
- }>>;
126
- lastModified: z.ZodNullable<z.ZodInt>;
127
- }, z.core.$strip>;
128
128
  lastSavedAt: z.ZodNullable<z.ZodInt>;
129
129
  lastModified: z.ZodNullable<z.ZodInt>;
130
130
  }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
131
131
  availableBalance: z.ZodObject<{
132
- value: z.ZodNumber;
132
+ current: z.ZodNumber;
133
133
  lastModified: z.ZodNullable<z.ZodInt>;
134
134
  }, z.core.$strip>;
135
135
  invoiceNoCounter: z.ZodInt;
136
136
  tktNoCounter: z.ZodInt;
137
- tier: z.ZodObject<{
138
- value: z.ZodDefault<z.ZodEnum<{
139
- free: "free";
140
- pro: "pro";
141
- premium: "premium";
142
- gold: "gold";
143
- }>>;
144
- lastModified: z.ZodNullable<z.ZodInt>;
145
- }, z.core.$strip>;
146
137
  lastSavedAt: z.ZodNullable<z.ZodInt>;
147
138
  lastModified: z.ZodNullable<z.ZodInt>;
148
139
  }, z.core.$strip>>>;
@@ -469,6 +460,15 @@ declare const PartialCompanyDetails: z.ZodObject<{
469
460
  parish: z.ZodString;
470
461
  country: z.ZodString;
471
462
  }, z.core.$strip>;
463
+ tier: z.ZodObject<{
464
+ current: z.ZodDefault<z.ZodEnum<{
465
+ free: "free";
466
+ pro: "pro";
467
+ premium: "premium";
468
+ gold: "gold";
469
+ }>>;
470
+ lastModified: z.ZodNullable<z.ZodInt>;
471
+ }, z.core.$strip>;
472
472
  legal: z.ZodObject<{
473
473
  regNo: z.ZodReadonly<z.ZodString>;
474
474
  trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -508,38 +508,20 @@ declare const PartialCompanyDetails: z.ZodObject<{
508
508
  }, z.core.$strip>>>>;
509
509
  state: z.ZodObject<{
510
510
  availableBalance: z.ZodObject<{
511
- value: z.ZodNumber;
511
+ current: z.ZodNumber;
512
512
  lastModified: z.ZodNullable<z.ZodInt>;
513
513
  }, z.core.$strip>;
514
514
  invoiceNoCounter: z.ZodInt;
515
515
  tktNoCounter: z.ZodInt;
516
- tier: z.ZodObject<{
517
- value: z.ZodDefault<z.ZodEnum<{
518
- free: "free";
519
- pro: "pro";
520
- premium: "premium";
521
- gold: "gold";
522
- }>>;
523
- lastModified: z.ZodNullable<z.ZodInt>;
524
- }, z.core.$strip>;
525
516
  lastSavedAt: z.ZodNullable<z.ZodInt>;
526
517
  lastModified: z.ZodNullable<z.ZodInt>;
527
518
  }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
528
519
  availableBalance: z.ZodObject<{
529
- value: z.ZodNumber;
520
+ current: z.ZodNumber;
530
521
  lastModified: z.ZodNullable<z.ZodInt>;
531
522
  }, z.core.$strip>;
532
523
  invoiceNoCounter: z.ZodInt;
533
524
  tktNoCounter: z.ZodInt;
534
- tier: z.ZodObject<{
535
- value: z.ZodDefault<z.ZodEnum<{
536
- free: "free";
537
- pro: "pro";
538
- premium: "premium";
539
- gold: "gold";
540
- }>>;
541
- lastModified: z.ZodNullable<z.ZodInt>;
542
- }, z.core.$strip>;
543
525
  lastSavedAt: z.ZodNullable<z.ZodInt>;
544
526
  lastModified: z.ZodNullable<z.ZodInt>;
545
527
  }, z.core.$strip>>>;
package/dist/main.js CHANGED
@@ -124,13 +124,18 @@ var CompanyUser = z4.object({
124
124
  }
125
125
  });
126
126
  var CompanyIdentity = z4.object({
127
- displayName: z4.string().min(3).max(20),
127
+ displayName: z4.string().min(3).max(25),
128
128
  logo: z4.string().max(2500).nullish(),
129
129
  contact: z4.object({
130
130
  email: z4.email().max(25),
131
131
  phoneNumber: PhoneNumber.optional()
132
132
  }),
133
133
  address: Address,
134
+ // Can only be changed by the server
135
+ tier: z4.object({
136
+ current: tiers.default("free"),
137
+ lastModified: Timestamp.nullable()
138
+ }),
134
139
  legal: z4.object({
135
140
  regNo: z4.string().max(20).readonly(),
136
141
  // The company's registration number
@@ -142,7 +147,7 @@ var CompanyIdentity = z4.object({
142
147
  var CompanyState = z4.object({
143
148
  // This can only be changed by the server/app admin
144
149
  availableBalance: z4.object({
145
- value: z4.number(),
150
+ current: z4.number(),
146
151
  lastModified: Timestamp.nullable()
147
152
  }),
148
153
  /** A counter for the company's invoice no.
@@ -151,10 +156,6 @@ var CompanyState = z4.object({
151
156
  invoiceNoCounter: z4.int().min(1),
152
157
  /** A counter for the company's ticket no. */
153
158
  tktNoCounter: z4.int().min(1),
154
- tier: z4.object({
155
- value: tiers.default("free"),
156
- lastModified: Timestamp.nullable()
157
- }),
158
159
  lastSavedAt: Timestamp.nullable(),
159
160
  lastModified: Timestamp.nullable()
160
161
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",