@mydoormot/app-types 1.7.26 → 1.7.28

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.25 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.27 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
- ESM dist/index.js 7.18 KB
12
- ESM ⚡️ Build success in 133ms
13
11
  CJS dist/index.cjs 9.03 KB
14
- CJS ⚡️ Build success in 143ms
12
+ CJS ⚡️ Build success in 117ms
13
+ ESM dist/index.js 7.18 KB
14
+ ESM ⚡️ Build success in 118ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 683ms
17
- DTS dist/index.d.ts 26.30 KB
18
- DTS dist/index.d.cts 26.30 KB
16
+ DTS ⚡️ Build success in 780ms
17
+ DTS dist/index.d.ts 26.78 KB
18
+ DTS dist/index.d.cts 26.78 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.28
4
+
5
+ ### Patch Changes
6
+
7
+ - Added product count
8
+
9
+ ## 1.7.27
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified commerce type
14
+
3
15
  ## 1.7.26
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -785,6 +785,7 @@ interface Collection {
785
785
  updated_at: string;
786
786
  deleted_at?: string | null;
787
787
  metadata?: Record<string, unknown> | null;
788
+ products_count?: number;
788
789
  }
789
790
  interface ProductTag {
790
791
  id: string;
@@ -794,6 +795,25 @@ interface ProductTag {
794
795
  updated_at?: string;
795
796
  deleted_at?: string | null;
796
797
  }
798
+ interface AddonGroupItem {
799
+ id: string;
800
+ product_id: string;
801
+ product?: Product;
802
+ addon_group_id: string;
803
+ created_at?: string;
804
+ updated_at?: string;
805
+ deleted_at?: string | null;
806
+ }
807
+ interface AddonGroup {
808
+ id: string;
809
+ product_id: string;
810
+ title: string;
811
+ max_select: number;
812
+ items?: AddonGroupItem[];
813
+ created_at?: string;
814
+ updated_at?: string;
815
+ deleted_at?: string | null;
816
+ }
797
817
  interface ProductCategory {
798
818
  id: string;
799
819
  name: string;
@@ -1028,4 +1048,4 @@ declare enum LinkDestination {
1028
1048
  }
1029
1049
  type NullOrUndefined = null | undefined;
1030
1050
 
1031
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, 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, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, 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 };
1051
+ export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, 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, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, 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
@@ -785,6 +785,7 @@ interface Collection {
785
785
  updated_at: string;
786
786
  deleted_at?: string | null;
787
787
  metadata?: Record<string, unknown> | null;
788
+ products_count?: number;
788
789
  }
789
790
  interface ProductTag {
790
791
  id: string;
@@ -794,6 +795,25 @@ interface ProductTag {
794
795
  updated_at?: string;
795
796
  deleted_at?: string | null;
796
797
  }
798
+ interface AddonGroupItem {
799
+ id: string;
800
+ product_id: string;
801
+ product?: Product;
802
+ addon_group_id: string;
803
+ created_at?: string;
804
+ updated_at?: string;
805
+ deleted_at?: string | null;
806
+ }
807
+ interface AddonGroup {
808
+ id: string;
809
+ product_id: string;
810
+ title: string;
811
+ max_select: number;
812
+ items?: AddonGroupItem[];
813
+ created_at?: string;
814
+ updated_at?: string;
815
+ deleted_at?: string | null;
816
+ }
797
817
  interface ProductCategory {
798
818
  id: string;
799
819
  name: string;
@@ -1028,4 +1048,4 @@ declare enum LinkDestination {
1028
1048
  }
1029
1049
  type NullOrUndefined = null | undefined;
1030
1050
 
1031
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, 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, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, 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 };
1051
+ export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Collection, 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, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.26",
3
+ "version": "1.7.28",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/commerce.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected'; // status
1
+ export type ProductStatus = 'draft' | 'proposed' | 'published' | 'rejected';
2
2
 
3
3
  export interface ProductImage {
4
4
  id: string;
@@ -113,6 +113,7 @@ export interface Collection {
113
113
  updated_at: string;
114
114
  deleted_at?: string | null;
115
115
  metadata?: Record<string, unknown> | null;
116
+ products_count?: number;
116
117
  }
117
118
 
118
119
  export interface ProductTag {
@@ -124,6 +125,27 @@ export interface ProductTag {
124
125
  deleted_at?: string | null;
125
126
  }
126
127
 
128
+ export interface AddonGroupItem {
129
+ id: string;
130
+ product_id: string;
131
+ product?: Product;
132
+ addon_group_id: string;
133
+ created_at?: string;
134
+ updated_at?: string;
135
+ deleted_at?: string | null;
136
+ }
137
+
138
+ export interface AddonGroup {
139
+ id: string;
140
+ product_id: string;
141
+ title: string;
142
+ max_select: number;
143
+ items?: AddonGroupItem[];
144
+ created_at?: string;
145
+ updated_at?: string;
146
+ deleted_at?: string | null;
147
+ }
148
+
127
149
  export interface ProductCategory {
128
150
  id: string;
129
151
  name: string;