@mydoormot/app-types 1.7.31 → 1.7.32
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +79 -78
- package/dist/index.d.ts +79 -78
- package/package.json +1 -1
- package/src/rider.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.7.
|
|
2
|
+
> @mydoormot/app-types@1.7.31 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2021
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[34mDTS[39m Build start
|
|
12
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m9.00 KB[39m
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in 272ms
|
|
14
11
|
[32mESM[39m [1mdist/index.js [22m[32m7.15 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 64ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m9.00 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 65ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 685ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m28.01 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m28.01 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -179,6 +179,84 @@ interface InvoiceItem {
|
|
|
179
179
|
itemDetails?: Errand;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
declare enum BusinessCapability {
|
|
183
|
+
SELF_FULFILLMENT = "self_fulfillment"
|
|
184
|
+
}
|
|
185
|
+
interface Business {
|
|
186
|
+
id: string;
|
|
187
|
+
userId: string;
|
|
188
|
+
name: string;
|
|
189
|
+
description: string;
|
|
190
|
+
officeNumber: string;
|
|
191
|
+
categoryId: string;
|
|
192
|
+
address: string | NullOrUndefined;
|
|
193
|
+
addressCoordinates: number[] | NullOrUndefined | {
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
};
|
|
197
|
+
loggedIn: boolean | NullOrUndefined;
|
|
198
|
+
slug: string;
|
|
199
|
+
verified: boolean | NullOrUndefined;
|
|
200
|
+
isVirtual: boolean | NullOrUndefined;
|
|
201
|
+
registrationCompleted: boolean | NullOrUndefined;
|
|
202
|
+
stateId: string | NullOrUndefined;
|
|
203
|
+
cityId: string | NullOrUndefined;
|
|
204
|
+
originalLogoUrl: string | NullOrUndefined;
|
|
205
|
+
logoUrl: string | NullOrUndefined;
|
|
206
|
+
logoBlurHash: string | NullOrUndefined;
|
|
207
|
+
coverImageUrl: string | NullOrUndefined;
|
|
208
|
+
orginalCoverImageUrl: string | NullOrUndefined;
|
|
209
|
+
coverImageBlurHash: string | NullOrUndefined;
|
|
210
|
+
createdAt: string | Date;
|
|
211
|
+
updatedAt: string | NullOrUndefined | Date;
|
|
212
|
+
verifiedAt: string | NullOrUndefined | Date;
|
|
213
|
+
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
214
|
+
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
215
|
+
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
216
|
+
}
|
|
217
|
+
interface BusinessPg extends Business {
|
|
218
|
+
pgId: any;
|
|
219
|
+
}
|
|
220
|
+
interface BusinessCategory {
|
|
221
|
+
id: string;
|
|
222
|
+
seqId: number;
|
|
223
|
+
name: string;
|
|
224
|
+
slug: string;
|
|
225
|
+
createdAt: string;
|
|
226
|
+
updatedAt: string;
|
|
227
|
+
}
|
|
228
|
+
interface Vendor {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
handle: string;
|
|
232
|
+
businessId: string;
|
|
233
|
+
logo?: string;
|
|
234
|
+
}
|
|
235
|
+
declare enum BusinessRole {
|
|
236
|
+
OWNER = "OWNER",
|
|
237
|
+
MANAGER = "MANAGER",
|
|
238
|
+
RIDER = "RIDER",
|
|
239
|
+
STAFF = "STAFF"
|
|
240
|
+
}
|
|
241
|
+
declare enum MembershipStatus {
|
|
242
|
+
ACTIVE = "ACTIVE",
|
|
243
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
244
|
+
SUSPENDED = "SUSPENDED"
|
|
245
|
+
}
|
|
246
|
+
interface BusinessMember {
|
|
247
|
+
id: string;
|
|
248
|
+
userId: string;
|
|
249
|
+
businessId: string;
|
|
250
|
+
pgId: string;
|
|
251
|
+
role: BusinessRole | `${BusinessRole}`;
|
|
252
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
253
|
+
invitedBy: string | NullOrUndefined;
|
|
254
|
+
userDetails: User | NullOrUndefined;
|
|
255
|
+
invitedByUserDetails: User | NullOrUndefined;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt: string | NullOrUndefined;
|
|
258
|
+
}
|
|
259
|
+
|
|
182
260
|
declare enum VehicleType {
|
|
183
261
|
Bike = "bike",
|
|
184
262
|
Shuttle = "shuttle"
|
|
@@ -280,6 +358,7 @@ type Rider = {
|
|
|
280
358
|
};
|
|
281
359
|
type RiderWithUserDetails = Rider & {
|
|
282
360
|
userDetails?: User;
|
|
361
|
+
businessMemberDetails?: BusinessMember;
|
|
283
362
|
};
|
|
284
363
|
declare enum RemittanceStatus {
|
|
285
364
|
Pending = "pending",
|
|
@@ -637,84 +716,6 @@ interface EnterpriseSubCategoryDoc {
|
|
|
637
716
|
createdAt: string;
|
|
638
717
|
}
|
|
639
718
|
|
|
640
|
-
declare enum BusinessCapability {
|
|
641
|
-
SELF_FULFILLMENT = "self_fulfillment"
|
|
642
|
-
}
|
|
643
|
-
interface Business {
|
|
644
|
-
id: string;
|
|
645
|
-
userId: string;
|
|
646
|
-
name: string;
|
|
647
|
-
description: string;
|
|
648
|
-
officeNumber: string;
|
|
649
|
-
categoryId: string;
|
|
650
|
-
address: string | NullOrUndefined;
|
|
651
|
-
addressCoordinates: number[] | NullOrUndefined | {
|
|
652
|
-
x: number;
|
|
653
|
-
y: number;
|
|
654
|
-
};
|
|
655
|
-
loggedIn: boolean | NullOrUndefined;
|
|
656
|
-
slug: string;
|
|
657
|
-
verified: boolean | NullOrUndefined;
|
|
658
|
-
isVirtual: boolean | NullOrUndefined;
|
|
659
|
-
registrationCompleted: boolean | NullOrUndefined;
|
|
660
|
-
stateId: string | NullOrUndefined;
|
|
661
|
-
cityId: string | NullOrUndefined;
|
|
662
|
-
originalLogoUrl: string | NullOrUndefined;
|
|
663
|
-
logoUrl: string | NullOrUndefined;
|
|
664
|
-
logoBlurHash: string | NullOrUndefined;
|
|
665
|
-
coverImageUrl: string | NullOrUndefined;
|
|
666
|
-
orginalCoverImageUrl: string | NullOrUndefined;
|
|
667
|
-
coverImageBlurHash: string | NullOrUndefined;
|
|
668
|
-
createdAt: string | Date;
|
|
669
|
-
updatedAt: string | NullOrUndefined | Date;
|
|
670
|
-
verifiedAt: string | NullOrUndefined | Date;
|
|
671
|
-
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
672
|
-
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
673
|
-
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
674
|
-
}
|
|
675
|
-
interface BusinessPg extends Business {
|
|
676
|
-
pgId: any;
|
|
677
|
-
}
|
|
678
|
-
interface BusinessCategory {
|
|
679
|
-
id: string;
|
|
680
|
-
seqId: number;
|
|
681
|
-
name: string;
|
|
682
|
-
slug: string;
|
|
683
|
-
createdAt: string;
|
|
684
|
-
updatedAt: string;
|
|
685
|
-
}
|
|
686
|
-
interface Vendor {
|
|
687
|
-
id: string;
|
|
688
|
-
name: string;
|
|
689
|
-
handle: string;
|
|
690
|
-
businessId: string;
|
|
691
|
-
logo?: string;
|
|
692
|
-
}
|
|
693
|
-
declare enum BusinessRole {
|
|
694
|
-
OWNER = "OWNER",
|
|
695
|
-
MANAGER = "MANAGER",
|
|
696
|
-
RIDER = "RIDER",
|
|
697
|
-
STAFF = "STAFF"
|
|
698
|
-
}
|
|
699
|
-
declare enum MembershipStatus {
|
|
700
|
-
ACTIVE = "ACTIVE",
|
|
701
|
-
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
702
|
-
SUSPENDED = "SUSPENDED"
|
|
703
|
-
}
|
|
704
|
-
interface BusinessMember {
|
|
705
|
-
id: string;
|
|
706
|
-
userId: string;
|
|
707
|
-
businessId: string;
|
|
708
|
-
pgId: string;
|
|
709
|
-
role: BusinessRole | `${BusinessRole}`;
|
|
710
|
-
status: MembershipStatus | `${MembershipStatus}`;
|
|
711
|
-
invitedBy: string | NullOrUndefined;
|
|
712
|
-
userDetails: User | NullOrUndefined;
|
|
713
|
-
invitedByUserDetails: User | NullOrUndefined;
|
|
714
|
-
createdAt: string;
|
|
715
|
-
updatedAt: string | NullOrUndefined;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
719
|
type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected';
|
|
719
720
|
interface ProductImage {
|
|
720
721
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -179,6 +179,84 @@ interface InvoiceItem {
|
|
|
179
179
|
itemDetails?: Errand;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
declare enum BusinessCapability {
|
|
183
|
+
SELF_FULFILLMENT = "self_fulfillment"
|
|
184
|
+
}
|
|
185
|
+
interface Business {
|
|
186
|
+
id: string;
|
|
187
|
+
userId: string;
|
|
188
|
+
name: string;
|
|
189
|
+
description: string;
|
|
190
|
+
officeNumber: string;
|
|
191
|
+
categoryId: string;
|
|
192
|
+
address: string | NullOrUndefined;
|
|
193
|
+
addressCoordinates: number[] | NullOrUndefined | {
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
};
|
|
197
|
+
loggedIn: boolean | NullOrUndefined;
|
|
198
|
+
slug: string;
|
|
199
|
+
verified: boolean | NullOrUndefined;
|
|
200
|
+
isVirtual: boolean | NullOrUndefined;
|
|
201
|
+
registrationCompleted: boolean | NullOrUndefined;
|
|
202
|
+
stateId: string | NullOrUndefined;
|
|
203
|
+
cityId: string | NullOrUndefined;
|
|
204
|
+
originalLogoUrl: string | NullOrUndefined;
|
|
205
|
+
logoUrl: string | NullOrUndefined;
|
|
206
|
+
logoBlurHash: string | NullOrUndefined;
|
|
207
|
+
coverImageUrl: string | NullOrUndefined;
|
|
208
|
+
orginalCoverImageUrl: string | NullOrUndefined;
|
|
209
|
+
coverImageBlurHash: string | NullOrUndefined;
|
|
210
|
+
createdAt: string | Date;
|
|
211
|
+
updatedAt: string | NullOrUndefined | Date;
|
|
212
|
+
verifiedAt: string | NullOrUndefined | Date;
|
|
213
|
+
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
214
|
+
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
215
|
+
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
216
|
+
}
|
|
217
|
+
interface BusinessPg extends Business {
|
|
218
|
+
pgId: any;
|
|
219
|
+
}
|
|
220
|
+
interface BusinessCategory {
|
|
221
|
+
id: string;
|
|
222
|
+
seqId: number;
|
|
223
|
+
name: string;
|
|
224
|
+
slug: string;
|
|
225
|
+
createdAt: string;
|
|
226
|
+
updatedAt: string;
|
|
227
|
+
}
|
|
228
|
+
interface Vendor {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
handle: string;
|
|
232
|
+
businessId: string;
|
|
233
|
+
logo?: string;
|
|
234
|
+
}
|
|
235
|
+
declare enum BusinessRole {
|
|
236
|
+
OWNER = "OWNER",
|
|
237
|
+
MANAGER = "MANAGER",
|
|
238
|
+
RIDER = "RIDER",
|
|
239
|
+
STAFF = "STAFF"
|
|
240
|
+
}
|
|
241
|
+
declare enum MembershipStatus {
|
|
242
|
+
ACTIVE = "ACTIVE",
|
|
243
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
244
|
+
SUSPENDED = "SUSPENDED"
|
|
245
|
+
}
|
|
246
|
+
interface BusinessMember {
|
|
247
|
+
id: string;
|
|
248
|
+
userId: string;
|
|
249
|
+
businessId: string;
|
|
250
|
+
pgId: string;
|
|
251
|
+
role: BusinessRole | `${BusinessRole}`;
|
|
252
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
253
|
+
invitedBy: string | NullOrUndefined;
|
|
254
|
+
userDetails: User | NullOrUndefined;
|
|
255
|
+
invitedByUserDetails: User | NullOrUndefined;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt: string | NullOrUndefined;
|
|
258
|
+
}
|
|
259
|
+
|
|
182
260
|
declare enum VehicleType {
|
|
183
261
|
Bike = "bike",
|
|
184
262
|
Shuttle = "shuttle"
|
|
@@ -280,6 +358,7 @@ type Rider = {
|
|
|
280
358
|
};
|
|
281
359
|
type RiderWithUserDetails = Rider & {
|
|
282
360
|
userDetails?: User;
|
|
361
|
+
businessMemberDetails?: BusinessMember;
|
|
283
362
|
};
|
|
284
363
|
declare enum RemittanceStatus {
|
|
285
364
|
Pending = "pending",
|
|
@@ -637,84 +716,6 @@ interface EnterpriseSubCategoryDoc {
|
|
|
637
716
|
createdAt: string;
|
|
638
717
|
}
|
|
639
718
|
|
|
640
|
-
declare enum BusinessCapability {
|
|
641
|
-
SELF_FULFILLMENT = "self_fulfillment"
|
|
642
|
-
}
|
|
643
|
-
interface Business {
|
|
644
|
-
id: string;
|
|
645
|
-
userId: string;
|
|
646
|
-
name: string;
|
|
647
|
-
description: string;
|
|
648
|
-
officeNumber: string;
|
|
649
|
-
categoryId: string;
|
|
650
|
-
address: string | NullOrUndefined;
|
|
651
|
-
addressCoordinates: number[] | NullOrUndefined | {
|
|
652
|
-
x: number;
|
|
653
|
-
y: number;
|
|
654
|
-
};
|
|
655
|
-
loggedIn: boolean | NullOrUndefined;
|
|
656
|
-
slug: string;
|
|
657
|
-
verified: boolean | NullOrUndefined;
|
|
658
|
-
isVirtual: boolean | NullOrUndefined;
|
|
659
|
-
registrationCompleted: boolean | NullOrUndefined;
|
|
660
|
-
stateId: string | NullOrUndefined;
|
|
661
|
-
cityId: string | NullOrUndefined;
|
|
662
|
-
originalLogoUrl: string | NullOrUndefined;
|
|
663
|
-
logoUrl: string | NullOrUndefined;
|
|
664
|
-
logoBlurHash: string | NullOrUndefined;
|
|
665
|
-
coverImageUrl: string | NullOrUndefined;
|
|
666
|
-
orginalCoverImageUrl: string | NullOrUndefined;
|
|
667
|
-
coverImageBlurHash: string | NullOrUndefined;
|
|
668
|
-
createdAt: string | Date;
|
|
669
|
-
updatedAt: string | NullOrUndefined | Date;
|
|
670
|
-
verifiedAt: string | NullOrUndefined | Date;
|
|
671
|
-
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
672
|
-
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
673
|
-
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
674
|
-
}
|
|
675
|
-
interface BusinessPg extends Business {
|
|
676
|
-
pgId: any;
|
|
677
|
-
}
|
|
678
|
-
interface BusinessCategory {
|
|
679
|
-
id: string;
|
|
680
|
-
seqId: number;
|
|
681
|
-
name: string;
|
|
682
|
-
slug: string;
|
|
683
|
-
createdAt: string;
|
|
684
|
-
updatedAt: string;
|
|
685
|
-
}
|
|
686
|
-
interface Vendor {
|
|
687
|
-
id: string;
|
|
688
|
-
name: string;
|
|
689
|
-
handle: string;
|
|
690
|
-
businessId: string;
|
|
691
|
-
logo?: string;
|
|
692
|
-
}
|
|
693
|
-
declare enum BusinessRole {
|
|
694
|
-
OWNER = "OWNER",
|
|
695
|
-
MANAGER = "MANAGER",
|
|
696
|
-
RIDER = "RIDER",
|
|
697
|
-
STAFF = "STAFF"
|
|
698
|
-
}
|
|
699
|
-
declare enum MembershipStatus {
|
|
700
|
-
ACTIVE = "ACTIVE",
|
|
701
|
-
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
702
|
-
SUSPENDED = "SUSPENDED"
|
|
703
|
-
}
|
|
704
|
-
interface BusinessMember {
|
|
705
|
-
id: string;
|
|
706
|
-
userId: string;
|
|
707
|
-
businessId: string;
|
|
708
|
-
pgId: string;
|
|
709
|
-
role: BusinessRole | `${BusinessRole}`;
|
|
710
|
-
status: MembershipStatus | `${MembershipStatus}`;
|
|
711
|
-
invitedBy: string | NullOrUndefined;
|
|
712
|
-
userDetails: User | NullOrUndefined;
|
|
713
|
-
invitedByUserDetails: User | NullOrUndefined;
|
|
714
|
-
createdAt: string;
|
|
715
|
-
updatedAt: string | NullOrUndefined;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
719
|
type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected';
|
|
719
720
|
interface ProductImage {
|
|
720
721
|
id: string;
|
package/package.json
CHANGED
package/src/rider.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// import { Enterprise } from './enterprise';
|
|
2
|
+
import { BusinessMember } from './business';
|
|
2
3
|
import { Errand } from './errand';
|
|
3
4
|
import { State } from './location';
|
|
4
5
|
import { User } from './user';
|
|
@@ -35,6 +36,7 @@ export type Rider = {
|
|
|
35
36
|
|
|
36
37
|
export type RiderWithUserDetails = Rider & {
|
|
37
38
|
userDetails?: User;
|
|
39
|
+
businessMemberDetails?: BusinessMember;
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
// Rider Settlement Types
|