@mydoormot/app-types 1.7.3 → 1.7.5
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 +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/business.ts +8 -0
- package/src/location.ts +2 -2
- 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.4 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 510ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m7.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 510ms
|
|
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 2785ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.61 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m17.61 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type City = {
|
|
2
2
|
id: string;
|
|
3
|
-
|
|
3
|
+
stateId: string;
|
|
4
|
+
stateDetails?: State;
|
|
4
5
|
name: string;
|
|
5
6
|
slug: string;
|
|
6
7
|
location: {
|
|
@@ -73,6 +74,7 @@ type User = {
|
|
|
73
74
|
isManaged?: boolean;
|
|
74
75
|
lastLoggedInBusinessId?: string;
|
|
75
76
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
77
|
+
isActive?: boolean;
|
|
76
78
|
};
|
|
77
79
|
type UserAddress = {
|
|
78
80
|
id: string;
|
|
@@ -597,12 +599,19 @@ declare enum BusinessRole {
|
|
|
597
599
|
RIDER = "RIDER",
|
|
598
600
|
STAFF = "STAFF"
|
|
599
601
|
}
|
|
602
|
+
declare enum MembershipStatus {
|
|
603
|
+
ACTIVE = "ACTIVE",
|
|
604
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
605
|
+
SUSPENDED = "SUSPENDED"
|
|
606
|
+
}
|
|
600
607
|
interface BusinessMember {
|
|
601
608
|
id: string;
|
|
602
609
|
userId: string;
|
|
603
610
|
businessId: string;
|
|
604
611
|
pgId: string;
|
|
605
612
|
role: BusinessRole | `${BusinessRole}`;
|
|
613
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
614
|
+
invitedBy: string | NullOrUndefined;
|
|
606
615
|
}
|
|
607
616
|
|
|
608
617
|
interface Customer {
|
|
@@ -694,4 +703,4 @@ declare enum LinkDestination {
|
|
|
694
703
|
}
|
|
695
704
|
type NullOrUndefined = null | undefined;
|
|
696
705
|
|
|
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 };
|
|
706
|
+
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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type City = {
|
|
2
2
|
id: string;
|
|
3
|
-
|
|
3
|
+
stateId: string;
|
|
4
|
+
stateDetails?: State;
|
|
4
5
|
name: string;
|
|
5
6
|
slug: string;
|
|
6
7
|
location: {
|
|
@@ -73,6 +74,7 @@ type User = {
|
|
|
73
74
|
isManaged?: boolean;
|
|
74
75
|
lastLoggedInBusinessId?: string;
|
|
75
76
|
globalRole: GlobalRoles | `${GlobalRoles}`;
|
|
77
|
+
isActive?: boolean;
|
|
76
78
|
};
|
|
77
79
|
type UserAddress = {
|
|
78
80
|
id: string;
|
|
@@ -597,12 +599,19 @@ declare enum BusinessRole {
|
|
|
597
599
|
RIDER = "RIDER",
|
|
598
600
|
STAFF = "STAFF"
|
|
599
601
|
}
|
|
602
|
+
declare enum MembershipStatus {
|
|
603
|
+
ACTIVE = "ACTIVE",
|
|
604
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
605
|
+
SUSPENDED = "SUSPENDED"
|
|
606
|
+
}
|
|
600
607
|
interface BusinessMember {
|
|
601
608
|
id: string;
|
|
602
609
|
userId: string;
|
|
603
610
|
businessId: string;
|
|
604
611
|
pgId: string;
|
|
605
612
|
role: BusinessRole | `${BusinessRole}`;
|
|
613
|
+
status: MembershipStatus | `${MembershipStatus}`;
|
|
614
|
+
invitedBy: string | NullOrUndefined;
|
|
606
615
|
}
|
|
607
616
|
|
|
608
617
|
interface Customer {
|
|
@@ -694,4 +703,4 @@ declare enum LinkDestination {
|
|
|
694
703
|
}
|
|
695
704
|
type NullOrUndefined = null | undefined;
|
|
696
705
|
|
|
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 };
|
|
706
|
+
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/location.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type City = {
|
|
2
2
|
id: string;
|
|
3
|
-
|
|
3
|
+
stateId: string;
|
|
4
|
+
stateDetails?: State;
|
|
4
5
|
name: string;
|
|
5
6
|
slug: string;
|
|
6
7
|
location: {
|
|
@@ -13,7 +14,6 @@ export type City = {
|
|
|
13
14
|
version: number;
|
|
14
15
|
isRiderActive: boolean;
|
|
15
16
|
isPropertyActive: boolean;
|
|
16
|
-
|
|
17
17
|
errandPrice?: number;
|
|
18
18
|
};
|
|
19
19
|
|