@bizmap/sdk 0.0.47 → 0.0.49

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
@@ -73,12 +73,12 @@ declare const CompanyDetails: z.ZodObject<{
73
73
  country: z.ZodString;
74
74
  }, z.core.$strip>;
75
75
  tier: z.ZodObject<{
76
- current: z.ZodDefault<z.ZodEnum<{
76
+ value: z.ZodEnum<{
77
77
  free: "free";
78
78
  pro: "pro";
79
79
  premium: "premium";
80
80
  gold: "gold";
81
- }>>;
81
+ }>;
82
82
  lastModified: z.ZodNullable<z.ZodInt>;
83
83
  }, z.core.$strip>;
84
84
  legal: z.ZodObject<{
@@ -120,7 +120,7 @@ declare const CompanyDetails: z.ZodObject<{
120
120
  }, z.core.$strip>>>>;
121
121
  state: z.ZodObject<{
122
122
  availableBalance: z.ZodObject<{
123
- current: z.ZodNumber;
123
+ value: z.ZodNumber;
124
124
  lastModified: z.ZodNullable<z.ZodInt>;
125
125
  }, z.core.$strip>;
126
126
  invoiceNoCounter: z.ZodInt;
@@ -129,7 +129,7 @@ declare const CompanyDetails: z.ZodObject<{
129
129
  lastModified: z.ZodNullable<z.ZodInt>;
130
130
  }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
131
131
  availableBalance: z.ZodObject<{
132
- current: z.ZodNumber;
132
+ value: z.ZodNumber;
133
133
  lastModified: z.ZodNullable<z.ZodInt>;
134
134
  }, z.core.$strip>;
135
135
  invoiceNoCounter: z.ZodInt;
@@ -176,7 +176,7 @@ declare const CompanyDetails: z.ZodObject<{
176
176
  percentage: z.ZodNumber;
177
177
  }, z.core.$strip>>>;
178
178
  services: z.ZodObject<{
179
- deploy: z.ZodBoolean;
179
+ deployed: z.ZodBoolean;
180
180
  value: z.ZodDefault<z.ZodArray<z.ZodObject<{
181
181
  createdAt: z.ZodReadonly<z.ZodInt>;
182
182
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -201,7 +201,7 @@ declare const CompanyDetails: z.ZodObject<{
201
201
  percentage: z.ZodNumber;
202
202
  }, z.core.$strip>>>;
203
203
  services: z.ZodObject<{
204
- deploy: z.ZodBoolean;
204
+ deployed: z.ZodBoolean;
205
205
  value: z.ZodDefault<z.ZodArray<z.ZodObject<{
206
206
  createdAt: z.ZodReadonly<z.ZodInt>;
207
207
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -461,12 +461,12 @@ declare const PartialCompanyDetails: z.ZodObject<{
461
461
  country: z.ZodString;
462
462
  }, z.core.$strip>;
463
463
  tier: z.ZodObject<{
464
- current: z.ZodDefault<z.ZodEnum<{
464
+ value: z.ZodEnum<{
465
465
  free: "free";
466
466
  pro: "pro";
467
467
  premium: "premium";
468
468
  gold: "gold";
469
- }>>;
469
+ }>;
470
470
  lastModified: z.ZodNullable<z.ZodInt>;
471
471
  }, z.core.$strip>;
472
472
  legal: z.ZodObject<{
@@ -508,7 +508,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
508
508
  }, z.core.$strip>>>>;
509
509
  state: z.ZodObject<{
510
510
  availableBalance: z.ZodObject<{
511
- current: z.ZodNumber;
511
+ value: z.ZodNumber;
512
512
  lastModified: z.ZodNullable<z.ZodInt>;
513
513
  }, z.core.$strip>;
514
514
  invoiceNoCounter: z.ZodInt;
@@ -517,7 +517,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
517
517
  lastModified: z.ZodNullable<z.ZodInt>;
518
518
  }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
519
519
  availableBalance: z.ZodObject<{
520
- current: z.ZodNumber;
520
+ value: z.ZodNumber;
521
521
  lastModified: z.ZodNullable<z.ZodInt>;
522
522
  }, z.core.$strip>;
523
523
  invoiceNoCounter: z.ZodInt;
@@ -564,7 +564,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
564
564
  percentage: z.ZodNumber;
565
565
  }, z.core.$strip>>>;
566
566
  services: z.ZodObject<{
567
- deploy: z.ZodBoolean;
567
+ deployed: z.ZodBoolean;
568
568
  value: z.ZodDefault<z.ZodArray<z.ZodObject<{
569
569
  createdAt: z.ZodReadonly<z.ZodInt>;
570
570
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -589,7 +589,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
589
589
  percentage: z.ZodNumber;
590
590
  }, z.core.$strip>>>;
591
591
  services: z.ZodObject<{
592
- deploy: z.ZodBoolean;
592
+ deployed: z.ZodBoolean;
593
593
  value: z.ZodDefault<z.ZodArray<z.ZodObject<{
594
594
  createdAt: z.ZodReadonly<z.ZodInt>;
595
595
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
package/dist/main.js CHANGED
@@ -57,11 +57,7 @@ var PriceTag = z2.object({
57
57
  });
58
58
 
59
59
  // src/schemas/Company.ts
60
- import {
61
- Address,
62
- PhoneNumber,
63
- UserModel
64
- } from "@wavy/util";
60
+ import { Address, PhoneNumber, UserModel } from "@wavy/util";
65
61
  import * as z4 from "zod";
66
62
 
67
63
  // src/enums/CompanyEnums.ts
@@ -133,7 +129,7 @@ var CompanyIdentity = z4.object({
133
129
  address: Address,
134
130
  // Can only be changed by the server
135
131
  tier: z4.object({
136
- current: tiers.default("free"),
132
+ value: tiers,
137
133
  lastModified: Timestamp.nullable()
138
134
  }),
139
135
  legal: z4.object({
@@ -147,7 +143,7 @@ var CompanyIdentity = z4.object({
147
143
  var CompanyState = z4.object({
148
144
  // This can only be changed by the server/app admin
149
145
  availableBalance: z4.object({
150
- current: z4.number(),
146
+ value: z4.number(),
151
147
  lastModified: Timestamp.nullable()
152
148
  }),
153
149
  /** A counter for the company's invoice no.
@@ -180,10 +176,10 @@ var Billing = z4.object({
180
176
  discounts: z4.array(PriceAdjustment).default([]),
181
177
  services: z4.object({
182
178
  /** Forces service selectors to use the list of service(s) that you've created. */
183
- deploy: z4.boolean(),
179
+ deployed: z4.boolean(),
184
180
  value: z4.array(PriceTag.omit({ uid: true })).max(100).default([])
185
181
  }).refine(
186
- (data) => !data.deploy || data.deploy && data.value.length > 0,
182
+ (data) => !data.deployed || data.deployed && data.value.length > 0,
187
183
  "You must create at least (1) service in order to deploy your service list."
188
184
  ),
189
185
  lastModified: Timestamp.nullable()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",