@mydoormot/app-types 1.7.2 → 1.7.4
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 +12 -0
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/business.ts +8 -0
- package/src/user.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.7.
|
|
2
|
+
> @mydoormot/app-types@1.7.3 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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.17 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 57ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 58ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m17.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 705ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.59 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m17.59 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ __export(src_exports, {
|
|
|
31
31
|
InvoiceItemType: () => InvoiceItemType,
|
|
32
32
|
InvoiceStatus: () => InvoiceStatus,
|
|
33
33
|
LinkDestination: () => LinkDestination,
|
|
34
|
+
MembershipStatus: () => MembershipStatus,
|
|
34
35
|
NotificationType: () => NotificationType,
|
|
35
36
|
ParcelSize: () => ParcelSize,
|
|
36
37
|
PaymentOptions: () => PaymentOptions,
|
|
@@ -191,6 +192,12 @@ var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
|
|
|
191
192
|
BusinessRole2["STAFF"] = "STAFF";
|
|
192
193
|
return BusinessRole2;
|
|
193
194
|
})(BusinessRole || {});
|
|
195
|
+
var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
|
|
196
|
+
MembershipStatus2["ACTIVE"] = "ACTIVE";
|
|
197
|
+
MembershipStatus2["PENDING_ACTIVATION"] = "PENDING_ACTIVATION";
|
|
198
|
+
MembershipStatus2["SUSPENDED"] = "SUSPENDED";
|
|
199
|
+
return MembershipStatus2;
|
|
200
|
+
})(MembershipStatus || {});
|
|
194
201
|
|
|
195
202
|
// src/index.ts
|
|
196
203
|
var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
@@ -212,6 +219,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
|
212
219
|
InvoiceItemType,
|
|
213
220
|
InvoiceStatus,
|
|
214
221
|
LinkDestination,
|
|
222
|
+
MembershipStatus,
|
|
215
223
|
NotificationType,
|
|
216
224
|
ParcelSize,
|
|
217
225
|
PaymentOptions,
|
package/dist/index.d.cts
CHANGED
|
@@ -55,7 +55,6 @@ type User = {
|
|
|
55
55
|
lastName: string;
|
|
56
56
|
emailVerified: boolean;
|
|
57
57
|
mobileVerified: boolean;
|
|
58
|
-
role: RoleType | `${RoleType}`;
|
|
59
58
|
mobileNumber: string;
|
|
60
59
|
updatedAt: string;
|
|
61
60
|
createdAt: string;
|
|
@@ -74,6 +73,7 @@ type User = {
|
|
|
74
73
|
isManaged?: boolean;
|
|
75
74
|
lastLoggedInBusinessId?: string;
|
|
76
75
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
76
|
+
isActive?: boolean;
|
|
77
77
|
};
|
|
78
78
|
type UserAddress = {
|
|
79
79
|
id: string;
|
|
@@ -598,12 +598,19 @@ declare enum BusinessRole {
|
|
|
598
598
|
RIDER = "RIDER",
|
|
599
599
|
STAFF = "STAFF"
|
|
600
600
|
}
|
|
601
|
+
declare enum MembershipStatus {
|
|
602
|
+
ACTIVE = "ACTIVE",
|
|
603
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
604
|
+
SUSPENDED = "SUSPENDED"
|
|
605
|
+
}
|
|
601
606
|
interface BusinessMember {
|
|
602
607
|
id: string;
|
|
603
608
|
userId: string;
|
|
604
609
|
businessId: string;
|
|
605
610
|
pgId: string;
|
|
606
611
|
role: BusinessRole | `${BusinessRole}`;
|
|
612
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
613
|
+
invitedBy: string | NullOrUndefined;
|
|
607
614
|
}
|
|
608
615
|
|
|
609
616
|
interface Customer {
|
|
@@ -695,4 +702,4 @@ declare enum LinkDestination {
|
|
|
695
702
|
}
|
|
696
703
|
type NullOrUndefined = null | undefined;
|
|
697
704
|
|
|
698
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
705
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ type User = {
|
|
|
55
55
|
lastName: string;
|
|
56
56
|
emailVerified: boolean;
|
|
57
57
|
mobileVerified: boolean;
|
|
58
|
-
role: RoleType | `${RoleType}`;
|
|
59
58
|
mobileNumber: string;
|
|
60
59
|
updatedAt: string;
|
|
61
60
|
createdAt: string;
|
|
@@ -74,6 +73,7 @@ type User = {
|
|
|
74
73
|
isManaged?: boolean;
|
|
75
74
|
lastLoggedInBusinessId?: string;
|
|
76
75
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
76
|
+
isActive?: boolean;
|
|
77
77
|
};
|
|
78
78
|
type UserAddress = {
|
|
79
79
|
id: string;
|
|
@@ -598,12 +598,19 @@ declare enum BusinessRole {
|
|
|
598
598
|
RIDER = "RIDER",
|
|
599
599
|
STAFF = "STAFF"
|
|
600
600
|
}
|
|
601
|
+
declare enum MembershipStatus {
|
|
602
|
+
ACTIVE = "ACTIVE",
|
|
603
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
604
|
+
SUSPENDED = "SUSPENDED"
|
|
605
|
+
}
|
|
601
606
|
interface BusinessMember {
|
|
602
607
|
id: string;
|
|
603
608
|
userId: string;
|
|
604
609
|
businessId: string;
|
|
605
610
|
pgId: string;
|
|
606
611
|
role: BusinessRole | `${BusinessRole}`;
|
|
612
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
613
|
+
invitedBy: string | NullOrUndefined;
|
|
607
614
|
}
|
|
608
615
|
|
|
609
616
|
interface Customer {
|
|
@@ -695,4 +702,4 @@ declare enum LinkDestination {
|
|
|
695
702
|
}
|
|
696
703
|
type NullOrUndefined = null | undefined;
|
|
697
704
|
|
|
698
|
-
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
705
|
+
export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.js
CHANGED
|
@@ -148,6 +148,12 @@ var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
|
|
|
148
148
|
BusinessRole2["STAFF"] = "STAFF";
|
|
149
149
|
return BusinessRole2;
|
|
150
150
|
})(BusinessRole || {});
|
|
151
|
+
var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
|
|
152
|
+
MembershipStatus2["ACTIVE"] = "ACTIVE";
|
|
153
|
+
MembershipStatus2["PENDING_ACTIVATION"] = "PENDING_ACTIVATION";
|
|
154
|
+
MembershipStatus2["SUSPENDED"] = "SUSPENDED";
|
|
155
|
+
return MembershipStatus2;
|
|
156
|
+
})(MembershipStatus || {});
|
|
151
157
|
|
|
152
158
|
// src/index.ts
|
|
153
159
|
var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
@@ -168,6 +174,7 @@ export {
|
|
|
168
174
|
InvoiceItemType,
|
|
169
175
|
InvoiceStatus,
|
|
170
176
|
LinkDestination,
|
|
177
|
+
MembershipStatus,
|
|
171
178
|
NotificationType,
|
|
172
179
|
ParcelSize,
|
|
173
180
|
PaymentOptions,
|
package/package.json
CHANGED
package/src/business.ts
CHANGED
|
@@ -74,10 +74,18 @@ export enum BusinessRole {
|
|
|
74
74
|
// MEMBER = 'MEMBER', // Reserved for future use
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
export enum MembershipStatus {
|
|
78
|
+
ACTIVE = 'ACTIVE',
|
|
79
|
+
PENDING_ACTIVATION = 'PENDING_ACTIVATION',
|
|
80
|
+
SUSPENDED = 'SUSPENDED',
|
|
81
|
+
}
|
|
82
|
+
|
|
77
83
|
export interface BusinessMember {
|
|
78
84
|
id: string;
|
|
79
85
|
userId: string;
|
|
80
86
|
businessId: string;
|
|
81
87
|
pgId: string;
|
|
82
88
|
role: BusinessRole | `${BusinessRole}`;
|
|
89
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
90
|
+
invitedBy: string | NullOrUndefined;
|
|
83
91
|
}
|
package/src/user.ts
CHANGED
|
@@ -29,7 +29,6 @@ export type User = {
|
|
|
29
29
|
lastName: string;
|
|
30
30
|
emailVerified: boolean;
|
|
31
31
|
mobileVerified: boolean;
|
|
32
|
-
role: RoleType | `${RoleType}`;
|
|
33
32
|
mobileNumber: string;
|
|
34
33
|
updatedAt: string;
|
|
35
34
|
createdAt: string;
|
|
@@ -48,6 +47,7 @@ export type User = {
|
|
|
48
47
|
isManaged?: boolean;
|
|
49
48
|
lastLoggedInBusinessId?: string;
|
|
50
49
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
50
|
+
isActive?: boolean;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export type UserAddress = {
|