@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@1.7.2 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 70ms
13
- ESM dist/index.js 5.88 KB
14
- ESM ⚡️ Build success in 70ms
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 1077ms
17
- DTS dist/index.d.ts 17.32 KB
18
- DTS dist/index.d.cts 17.32 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,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified members roles
8
+
3
9
  ## 1.7.3
4
10
 
5
11
  ### 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
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.3",
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
@@ -47,6 +47,7 @@ export type User = {
47
47
  isManaged?: boolean;
48
48
  lastLoggedInBusinessId?: string;
49
49
  globalRole: GlobalRoles | `${GlobalRoles}`;
50
+ isActive?: boolean;
50
51
  };
51
52
 
52
53
  export type UserAddress = {