@mydoormot/app-types 1.7.3 → 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 +6 -0
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/business.ts +8 -0
- package/src/user.ts +1 -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.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
|
@@ -73,6 +73,7 @@ type User = {
|
|
|
73
73
|
isManaged?: boolean;
|
|
74
74
|
lastLoggedInBusinessId?: string;
|
|
75
75
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
76
|
+
isActive?: boolean;
|
|
76
77
|
};
|
|
77
78
|
type UserAddress = {
|
|
78
79
|
id: string;
|
|
@@ -597,12 +598,19 @@ declare enum BusinessRole {
|
|
|
597
598
|
RIDER = "RIDER",
|
|
598
599
|
STAFF = "STAFF"
|
|
599
600
|
}
|
|
601
|
+
declare enum MembershipStatus {
|
|
602
|
+
ACTIVE = "ACTIVE",
|
|
603
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
604
|
+
SUSPENDED = "SUSPENDED"
|
|
605
|
+
}
|
|
600
606
|
interface BusinessMember {
|
|
601
607
|
id: string;
|
|
602
608
|
userId: string;
|
|
603
609
|
businessId: string;
|
|
604
610
|
pgId: string;
|
|
605
611
|
role: BusinessRole | `${BusinessRole}`;
|
|
612
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
613
|
+
invitedBy: string | NullOrUndefined;
|
|
606
614
|
}
|
|
607
615
|
|
|
608
616
|
interface Customer {
|
|
@@ -694,4 +702,4 @@ declare enum LinkDestination {
|
|
|
694
702
|
}
|
|
695
703
|
type NullOrUndefined = null | undefined;
|
|
696
704
|
|
|
697
|
-
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
|
@@ -73,6 +73,7 @@ type User = {
|
|
|
73
73
|
isManaged?: boolean;
|
|
74
74
|
lastLoggedInBusinessId?: string;
|
|
75
75
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
76
|
+
isActive?: boolean;
|
|
76
77
|
};
|
|
77
78
|
type UserAddress = {
|
|
78
79
|
id: string;
|
|
@@ -597,12 +598,19 @@ declare enum BusinessRole {
|
|
|
597
598
|
RIDER = "RIDER",
|
|
598
599
|
STAFF = "STAFF"
|
|
599
600
|
}
|
|
601
|
+
declare enum MembershipStatus {
|
|
602
|
+
ACTIVE = "ACTIVE",
|
|
603
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
604
|
+
SUSPENDED = "SUSPENDED"
|
|
605
|
+
}
|
|
600
606
|
interface BusinessMember {
|
|
601
607
|
id: string;
|
|
602
608
|
userId: string;
|
|
603
609
|
businessId: string;
|
|
604
610
|
pgId: string;
|
|
605
611
|
role: BusinessRole | `${BusinessRole}`;
|
|
612
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
613
|
+
invitedBy: string | NullOrUndefined;
|
|
606
614
|
}
|
|
607
615
|
|
|
608
616
|
interface Customer {
|
|
@@ -694,4 +702,4 @@ declare enum LinkDestination {
|
|
|
694
702
|
}
|
|
695
703
|
type NullOrUndefined = null | undefined;
|
|
696
704
|
|
|
697
|
-
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
|
}
|