@bizmap/sdk 0.0.48 → 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 +10 -10
- package/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ declare const CompanyDetails: z.ZodObject<{
|
|
|
73
73
|
country: z.ZodString;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
tier: z.ZodObject<{
|
|
76
|
-
|
|
76
|
+
value: z.ZodEnum<{
|
|
77
77
|
free: "free";
|
|
78
78
|
pro: "pro";
|
|
79
79
|
premium: "premium";
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,7 +461,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
|
|
|
461
461
|
country: z.ZodString;
|
|
462
462
|
}, z.core.$strip>;
|
|
463
463
|
tier: z.ZodObject<{
|
|
464
|
-
|
|
464
|
+
value: z.ZodEnum<{
|
|
465
465
|
free: "free";
|
|
466
466
|
pro: "pro";
|
|
467
467
|
premium: "premium";
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
@@ -129,7 +129,7 @@ var CompanyIdentity = z4.object({
|
|
|
129
129
|
address: Address,
|
|
130
130
|
// Can only be changed by the server
|
|
131
131
|
tier: z4.object({
|
|
132
|
-
|
|
132
|
+
value: tiers,
|
|
133
133
|
lastModified: Timestamp.nullable()
|
|
134
134
|
}),
|
|
135
135
|
legal: z4.object({
|
|
@@ -143,7 +143,7 @@ var CompanyIdentity = z4.object({
|
|
|
143
143
|
var CompanyState = z4.object({
|
|
144
144
|
// This can only be changed by the server/app admin
|
|
145
145
|
availableBalance: z4.object({
|
|
146
|
-
|
|
146
|
+
value: z4.number(),
|
|
147
147
|
lastModified: Timestamp.nullable()
|
|
148
148
|
}),
|
|
149
149
|
/** A counter for the company's invoice no.
|
|
@@ -176,10 +176,10 @@ var Billing = z4.object({
|
|
|
176
176
|
discounts: z4.array(PriceAdjustment).default([]),
|
|
177
177
|
services: z4.object({
|
|
178
178
|
/** Forces service selectors to use the list of service(s) that you've created. */
|
|
179
|
-
|
|
179
|
+
deployed: z4.boolean(),
|
|
180
180
|
value: z4.array(PriceTag.omit({ uid: true })).max(100).default([])
|
|
181
181
|
}).refine(
|
|
182
|
-
(data) => !data.
|
|
182
|
+
(data) => !data.deployed || data.deployed && data.value.length > 0,
|
|
183
183
|
"You must create at least (1) service in order to deploy your service list."
|
|
184
184
|
),
|
|
185
185
|
lastModified: Timestamp.nullable()
|