@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@1.7.1 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
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
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.cjs 7.51 KB
12
- CJS ⚡️ Build success in 176ms
13
- ESM dist/index.js 5.88 KB
14
- ESM ⚡️ Build success in 176ms
11
+ ESM dist/index.js 6.17 KB
12
+ ESM ⚡️ Build success in 57ms
13
+ CJS dist/index.cjs 7.84 KB
14
+ CJS ⚡️ Build success in 58ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1002ms
17
- DTS dist/index.d.ts 17.36 KB
18
- DTS dist/index.d.cts 17.36 KB
16
+ DTS ⚡️ Build success in 705ms
17
+ DTS dist/index.d.ts 17.59 KB
18
+ DTS dist/index.d.cts 17.59 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified members roles
8
+
9
+ ## 1.7.3
10
+
11
+ ### Patch Changes
12
+
13
+ - removed role from user type
14
+
3
15
  ## 1.7.2
4
16
 
5
17
  ### Patch Changes
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
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 = {