@mydoormot/app-types 1.7.22 → 1.7.24

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,18 +1,18 @@
1
-
2
- > @mydoormot/app-types@1.7.21 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
- > tsup src/index.ts --format esm,cjs --dts
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v7.3.0
8
- CLI Target: es2021
9
- ESM Build start
10
- CJS Build start
11
- DTS Build start
12
- ESM dist/index.js 6.75 KB
13
- ESM ⚡️ Build success in 440ms
14
- CJS dist/index.cjs 8.51 KB
15
- CJS ⚡️ Build success in 440ms
16
- DTS ⚡️ Build success in 1476ms
17
- DTS dist/index.d.ts 22.32 KB
18
- DTS dist/index.d.cts 22.32 KB
1
+
2
+ > @mydoormot/app-types@1.7.23 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
+ > tsup src/index.ts --format esm,cjs --dts
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v7.3.0
8
+ CLI Target: es2021
9
+ ESM Build start
10
+ CJS Build start
11
+ DTS Build start
12
+ ESM dist/index.js 7.18 KB
13
+ ESM ⚡️ Build success in 448ms
14
+ CJS dist/index.cjs 9.03 KB
15
+ CJS ⚡️ Build success in 448ms
16
+ DTS ⚡️ Build success in 781ms
17
+ DTS dist/index.d.ts 22.58 KB
18
+ DTS dist/index.d.cts 22.58 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified business routes
8
+
9
+ ## 1.7.23
10
+
11
+ ### Patch Changes
12
+
13
+ - Added settlement type
14
+
3
15
  ## 1.7.22
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -22,6 +22,7 @@ var src_exports = {};
22
22
  __export(src_exports, {
23
23
  AddressTypes: () => AddressTypes,
24
24
  AuthType: () => AuthType,
25
+ BusinessCapability: () => BusinessCapability,
25
26
  BusinessRole: () => BusinessRole,
26
27
  DeliveryStatus: () => DeliveryStatus,
27
28
  EnterpriseType: () => EnterpriseType,
@@ -37,6 +38,7 @@ __export(src_exports, {
37
38
  PaymentOptions: () => PaymentOptions,
38
39
  RemittanceStatus: () => RemittanceStatus,
39
40
  RoleType: () => RoleType,
41
+ SettlementType: () => SettlementType,
40
42
  TraccarDeviceStatus: () => TraccarDeviceStatus,
41
43
  VehicleLogType: () => VehicleLogType,
42
44
  VehicleType: () => VehicleType,
@@ -182,6 +184,11 @@ var RemittanceStatus = /* @__PURE__ */ ((RemittanceStatus2) => {
182
184
  RemittanceStatus2["Cancelled"] = "cancelled";
183
185
  return RemittanceStatus2;
184
186
  })(RemittanceStatus || {});
187
+ var SettlementType = /* @__PURE__ */ ((SettlementType2) => {
188
+ SettlementType2["DeliveryFee"] = "delivery_fee";
189
+ SettlementType2["Additional"] = "additional";
190
+ return SettlementType2;
191
+ })(SettlementType || {});
185
192
 
186
193
  // src/enterprise.ts
187
194
  var EnterpriseType = /* @__PURE__ */ ((EnterpriseType2) => {
@@ -193,6 +200,10 @@ var EnterpriseType = /* @__PURE__ */ ((EnterpriseType2) => {
193
200
  })(EnterpriseType || {});
194
201
 
195
202
  // src/business.ts
203
+ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
204
+ BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
205
+ return BusinessCapability2;
206
+ })(BusinessCapability || {});
196
207
  var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
197
208
  BusinessRole2["OWNER"] = "OWNER";
198
209
  BusinessRole2["MANAGER"] = "MANAGER";
@@ -226,6 +237,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
226
237
  0 && (module.exports = {
227
238
  AddressTypes,
228
239
  AuthType,
240
+ BusinessCapability,
229
241
  BusinessRole,
230
242
  DeliveryStatus,
231
243
  EnterpriseType,
@@ -241,6 +253,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
241
253
  PaymentOptions,
242
254
  RemittanceStatus,
243
255
  RoleType,
256
+ SettlementType,
244
257
  TraccarDeviceStatus,
245
258
  VehicleLogType,
246
259
  VehicleType,
package/dist/index.d.cts CHANGED
@@ -287,6 +287,10 @@ interface RiderPerformanceStats {
287
287
  riders: RiderPerformanceItem[];
288
288
  timeSeries?: RiderPerformanceTimeSeries[];
289
289
  }
290
+ declare enum SettlementType {
291
+ DeliveryFee = "delivery_fee",
292
+ Additional = "additional"
293
+ }
290
294
 
291
295
  declare enum ErrandStatus {
292
296
  Pending = "pending",
@@ -594,6 +598,9 @@ interface EnterpriseSubCategoryDoc {
594
598
  createdAt: string;
595
599
  }
596
600
 
601
+ declare enum BusinessCapability {
602
+ SELF_FULFILLMENT = "self_fulfillment"
603
+ }
597
604
  interface Business {
598
605
  id: string;
599
606
  userId: string;
@@ -625,6 +632,7 @@ interface Business {
625
632
  registrationCompletedAt: string | NullOrUndefined | Date;
626
633
  isManaged: boolean | NullOrUndefined;
627
634
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
635
+ capabilities: BusinessCapability[] | NullOrUndefined;
628
636
  }
629
637
  interface BusinessPg extends Business {
630
638
  pgId: any;
@@ -886,4 +894,4 @@ declare enum LinkDestination {
886
894
  }
887
895
  type NullOrUndefined = null | undefined;
888
896
 
889
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, 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 MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
897
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, 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 MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/dist/index.d.ts CHANGED
@@ -287,6 +287,10 @@ interface RiderPerformanceStats {
287
287
  riders: RiderPerformanceItem[];
288
288
  timeSeries?: RiderPerformanceTimeSeries[];
289
289
  }
290
+ declare enum SettlementType {
291
+ DeliveryFee = "delivery_fee",
292
+ Additional = "additional"
293
+ }
290
294
 
291
295
  declare enum ErrandStatus {
292
296
  Pending = "pending",
@@ -594,6 +598,9 @@ interface EnterpriseSubCategoryDoc {
594
598
  createdAt: string;
595
599
  }
596
600
 
601
+ declare enum BusinessCapability {
602
+ SELF_FULFILLMENT = "self_fulfillment"
603
+ }
597
604
  interface Business {
598
605
  id: string;
599
606
  userId: string;
@@ -625,6 +632,7 @@ interface Business {
625
632
  registrationCompletedAt: string | NullOrUndefined | Date;
626
633
  isManaged: boolean | NullOrUndefined;
627
634
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
635
+ capabilities: BusinessCapability[] | NullOrUndefined;
628
636
  }
629
637
  interface BusinessPg extends Business {
630
638
  pgId: any;
@@ -886,4 +894,4 @@ declare enum LinkDestination {
886
894
  }
887
895
  type NullOrUndefined = null | undefined;
888
896
 
889
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, 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 MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
897
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, 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 MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, RoleType, SettlementType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/dist/index.js CHANGED
@@ -136,6 +136,11 @@ var RemittanceStatus = /* @__PURE__ */ ((RemittanceStatus2) => {
136
136
  RemittanceStatus2["Cancelled"] = "cancelled";
137
137
  return RemittanceStatus2;
138
138
  })(RemittanceStatus || {});
139
+ var SettlementType = /* @__PURE__ */ ((SettlementType2) => {
140
+ SettlementType2["DeliveryFee"] = "delivery_fee";
141
+ SettlementType2["Additional"] = "additional";
142
+ return SettlementType2;
143
+ })(SettlementType || {});
139
144
 
140
145
  // src/enterprise.ts
141
146
  var EnterpriseType = /* @__PURE__ */ ((EnterpriseType2) => {
@@ -147,6 +152,10 @@ var EnterpriseType = /* @__PURE__ */ ((EnterpriseType2) => {
147
152
  })(EnterpriseType || {});
148
153
 
149
154
  // src/business.ts
155
+ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
156
+ BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
157
+ return BusinessCapability2;
158
+ })(BusinessCapability || {});
150
159
  var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
151
160
  BusinessRole2["OWNER"] = "OWNER";
152
161
  BusinessRole2["MANAGER"] = "MANAGER";
@@ -179,6 +188,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
179
188
  export {
180
189
  AddressTypes,
181
190
  AuthType,
191
+ BusinessCapability,
182
192
  BusinessRole,
183
193
  DeliveryStatus,
184
194
  EnterpriseType,
@@ -194,6 +204,7 @@ export {
194
204
  PaymentOptions,
195
205
  RemittanceStatus,
196
206
  RoleType,
207
+ SettlementType,
197
208
  TraccarDeviceStatus,
198
209
  VehicleLogType,
199
210
  VehicleType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.22",
3
+ "version": "1.7.24",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/business.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { NullOrUndefined, User } from '.';
2
2
 
3
+ export enum BusinessCapability {
4
+ SELF_FULFILLMENT = 'self_fulfillment',
5
+ }
6
+
3
7
  export interface Business {
4
8
  id: string;
5
9
  userId: string;
@@ -38,6 +42,7 @@ export interface Business {
38
42
  registrationCompletedAt: string | NullOrUndefined | Date;
39
43
  isManaged: boolean | NullOrUndefined;
40
44
  businessCategoryDetails: BusinessCategory | NullOrUndefined;
45
+ capabilities: BusinessCapability[] | NullOrUndefined;
41
46
  }
42
47
 
43
48
  export interface BusinessPg extends Business {
package/src/rider.ts CHANGED
@@ -138,3 +138,8 @@ export interface RiderPerformanceStats {
138
138
  riders: RiderPerformanceItem[];
139
139
  timeSeries?: RiderPerformanceTimeSeries[];
140
140
  }
141
+
142
+ export enum SettlementType {
143
+ DeliveryFee = 'delivery_fee',
144
+ Additional = 'additional',
145
+ }