@mydoormot/app-types 1.9.4 → 1.10.0
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 +18 -18
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/src/invoice.ts +0 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
> @mydoormot/app-types@1.9.
|
|
3
|
-
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
> @mydoormot/app-types@1.9.4 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
|
+
ESM dist/index.js 13.59 KB
|
|
12
|
+
ESM ⚡️ Build success in 57ms
|
|
13
|
+
CJS dist/index.cjs 16.34 KB
|
|
14
|
+
CJS ⚡️ Build success in 57ms
|
|
15
|
+
DTS Build start
|
|
16
|
+
DTS ⚡️ Build success in 651ms
|
|
17
|
+
DTS dist/index.d.ts 45.74 KB
|
|
18
|
+
DTS dist/index.d.cts 45.74 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -218,7 +218,6 @@ var InvoiceEventType = /* @__PURE__ */ ((InvoiceEventType2) => {
|
|
|
218
218
|
InvoiceEventType2["PaymentRecorded"] = "payment_recorded";
|
|
219
219
|
InvoiceEventType2["PaymentReversed"] = "payment_reversed";
|
|
220
220
|
InvoiceEventType2["StatusChanged"] = "status_changed";
|
|
221
|
-
InvoiceEventType2["Shared"] = "shared";
|
|
222
221
|
InvoiceEventType2["Viewed"] = "viewed";
|
|
223
222
|
return InvoiceEventType2;
|
|
224
223
|
})(InvoiceEventType || {});
|
package/dist/index.d.cts
CHANGED
|
@@ -197,7 +197,6 @@ declare enum InvoiceEventType {
|
|
|
197
197
|
PaymentRecorded = "payment_recorded",
|
|
198
198
|
PaymentReversed = "payment_reversed",
|
|
199
199
|
StatusChanged = "status_changed",
|
|
200
|
-
Shared = "shared",
|
|
201
200
|
Viewed = "viewed"
|
|
202
201
|
}
|
|
203
202
|
/** Why an errand in the period was not charged on the statement. */
|
|
@@ -237,12 +236,6 @@ interface InvoiceEvent {
|
|
|
237
236
|
meta?: Record<string, unknown>;
|
|
238
237
|
createdAt: string;
|
|
239
238
|
}
|
|
240
|
-
/** What `POST /invoices/:invoiceId/statement-link` returns. */
|
|
241
|
-
interface SharedStatement {
|
|
242
|
-
/** The slug in the public statement URL. Stable for the invoice's lifetime. */
|
|
243
|
-
statementSlug: string;
|
|
244
|
-
sentAt?: string;
|
|
245
|
-
}
|
|
246
239
|
/** Whether a frozen invoice has fallen out of date, and by how much. */
|
|
247
240
|
interface InvoiceDrift {
|
|
248
241
|
errandCount: number;
|
|
@@ -276,7 +269,6 @@ interface Invoice {
|
|
|
276
269
|
* Document lifecycle, kept separate from `status`: an invoice can be
|
|
277
270
|
* part-paid and viewed, or paid and never opened.
|
|
278
271
|
*/
|
|
279
|
-
sentAt?: string;
|
|
280
272
|
firstViewedAt?: string;
|
|
281
273
|
lastViewedAt?: string;
|
|
282
274
|
viewCount?: number;
|
|
@@ -1606,4 +1598,4 @@ declare enum LinkDestination {
|
|
|
1606
1598
|
}
|
|
1607
1599
|
type NullOrUndefined = null | undefined;
|
|
1608
1600
|
|
|
1609
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessFuelSettings, type BusinessMember, type BusinessModules, type BusinessPg, type BusinessPortal, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Customer, type CustomerAddress, type CustomerBilling, type CustomerTransactionStats, DEFAULT_BUSINESS_FUEL_SETTINGS, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, DeliveryStatus, type DraftErrand, DraftErrandStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, ErrandInvoiceState, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, type ExpensePaidBy, FeePaymentStatus, FeeSettlement, type FuelDueData, type FuelDueItem, FuelDueStatus, type FuelDueTotals, type FuelPercentSuggestion, type FuelSinceLastRefuel, type FuelSuggestionConfidence, type GeoPoint, GlobalRoles, type Invoice, type InvoiceDrift, type InvoiceEvent, InvoiceEventType, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, type InvoicePayment, InvoicePaymentMethod, 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 OpeningHours, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type PortalHandleAvailability, PortalStatus, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, type PublicPortal, type PublicPortalBusiness, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, type
|
|
1601
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessFuelSettings, type BusinessMember, type BusinessModules, type BusinessPg, type BusinessPortal, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Customer, type CustomerAddress, type CustomerBilling, type CustomerTransactionStats, DEFAULT_BUSINESS_FUEL_SETTINGS, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, DeliveryStatus, type DraftErrand, DraftErrandStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, ErrandInvoiceState, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, type ExpensePaidBy, FeePaymentStatus, FeeSettlement, type FuelDueData, type FuelDueItem, FuelDueStatus, type FuelDueTotals, type FuelPercentSuggestion, type FuelSinceLastRefuel, type FuelSuggestionConfidence, type GeoPoint, GlobalRoles, type Invoice, type InvoiceDrift, type InvoiceEvent, InvoiceEventType, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, type InvoicePayment, InvoicePaymentMethod, 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 OpeningHours, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type PortalHandleAvailability, PortalStatus, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, type PublicPortal, type PublicPortalBusiness, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, type State, SweepExclusionReason, type TrackerPosition, type Transaction, type TransactionCategory, type TransactionItem, type TransactionRiderUser, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -197,7 +197,6 @@ declare enum InvoiceEventType {
|
|
|
197
197
|
PaymentRecorded = "payment_recorded",
|
|
198
198
|
PaymentReversed = "payment_reversed",
|
|
199
199
|
StatusChanged = "status_changed",
|
|
200
|
-
Shared = "shared",
|
|
201
200
|
Viewed = "viewed"
|
|
202
201
|
}
|
|
203
202
|
/** Why an errand in the period was not charged on the statement. */
|
|
@@ -237,12 +236,6 @@ interface InvoiceEvent {
|
|
|
237
236
|
meta?: Record<string, unknown>;
|
|
238
237
|
createdAt: string;
|
|
239
238
|
}
|
|
240
|
-
/** What `POST /invoices/:invoiceId/statement-link` returns. */
|
|
241
|
-
interface SharedStatement {
|
|
242
|
-
/** The slug in the public statement URL. Stable for the invoice's lifetime. */
|
|
243
|
-
statementSlug: string;
|
|
244
|
-
sentAt?: string;
|
|
245
|
-
}
|
|
246
239
|
/** Whether a frozen invoice has fallen out of date, and by how much. */
|
|
247
240
|
interface InvoiceDrift {
|
|
248
241
|
errandCount: number;
|
|
@@ -276,7 +269,6 @@ interface Invoice {
|
|
|
276
269
|
* Document lifecycle, kept separate from `status`: an invoice can be
|
|
277
270
|
* part-paid and viewed, or paid and never opened.
|
|
278
271
|
*/
|
|
279
|
-
sentAt?: string;
|
|
280
272
|
firstViewedAt?: string;
|
|
281
273
|
lastViewedAt?: string;
|
|
282
274
|
viewCount?: number;
|
|
@@ -1606,4 +1598,4 @@ declare enum LinkDestination {
|
|
|
1606
1598
|
}
|
|
1607
1599
|
type NullOrUndefined = null | undefined;
|
|
1608
1600
|
|
|
1609
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessFuelSettings, type BusinessMember, type BusinessModules, type BusinessPg, type BusinessPortal, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Customer, type CustomerAddress, type CustomerBilling, type CustomerTransactionStats, DEFAULT_BUSINESS_FUEL_SETTINGS, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, DeliveryStatus, type DraftErrand, DraftErrandStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, ErrandInvoiceState, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, type ExpensePaidBy, FeePaymentStatus, FeeSettlement, type FuelDueData, type FuelDueItem, FuelDueStatus, type FuelDueTotals, type FuelPercentSuggestion, type FuelSinceLastRefuel, type FuelSuggestionConfidence, type GeoPoint, GlobalRoles, type Invoice, type InvoiceDrift, type InvoiceEvent, InvoiceEventType, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, type InvoicePayment, InvoicePaymentMethod, 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 OpeningHours, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type PortalHandleAvailability, PortalStatus, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, type PublicPortal, type PublicPortalBusiness, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, type
|
|
1601
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessFuelSettings, type BusinessMember, type BusinessModules, type BusinessPg, type BusinessPortal, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Customer, type CustomerAddress, type CustomerBilling, type CustomerTransactionStats, DEFAULT_BUSINESS_FUEL_SETTINGS, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, DeliveryStatus, type DraftErrand, DraftErrandStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, ErrandInvoiceState, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, type ExpensePaidBy, FeePaymentStatus, FeeSettlement, type FuelDueData, type FuelDueItem, FuelDueStatus, type FuelDueTotals, type FuelPercentSuggestion, type FuelSinceLastRefuel, type FuelSuggestionConfidence, type GeoPoint, GlobalRoles, type Invoice, type InvoiceDrift, type InvoiceEvent, InvoiceEventType, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, type InvoicePayment, InvoicePaymentMethod, 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 OpeningHours, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type PortalHandleAvailability, PortalStatus, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, type PublicPortal, type PublicPortalBusiness, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, type State, SweepExclusionReason, type TrackerPosition, type Transaction, type TransactionCategory, type TransactionItem, type TransactionRiderUser, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
package/dist/index.js
CHANGED
|
@@ -152,7 +152,6 @@ var InvoiceEventType = /* @__PURE__ */ ((InvoiceEventType2) => {
|
|
|
152
152
|
InvoiceEventType2["PaymentRecorded"] = "payment_recorded";
|
|
153
153
|
InvoiceEventType2["PaymentReversed"] = "payment_reversed";
|
|
154
154
|
InvoiceEventType2["StatusChanged"] = "status_changed";
|
|
155
|
-
InvoiceEventType2["Shared"] = "shared";
|
|
156
155
|
InvoiceEventType2["Viewed"] = "viewed";
|
|
157
156
|
return InvoiceEventType2;
|
|
158
157
|
})(InvoiceEventType || {});
|
package/package.json
CHANGED
package/src/invoice.ts
CHANGED
|
@@ -42,7 +42,6 @@ export enum InvoiceEventType {
|
|
|
42
42
|
PaymentRecorded = 'payment_recorded',
|
|
43
43
|
PaymentReversed = 'payment_reversed',
|
|
44
44
|
StatusChanged = 'status_changed',
|
|
45
|
-
Shared = 'shared',
|
|
46
45
|
Viewed = 'viewed',
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -86,13 +85,6 @@ export interface InvoiceEvent {
|
|
|
86
85
|
createdAt: string;
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
/** What `POST /invoices/:invoiceId/statement-link` returns. */
|
|
90
|
-
export interface SharedStatement {
|
|
91
|
-
/** The slug in the public statement URL. Stable for the invoice's lifetime. */
|
|
92
|
-
statementSlug: string;
|
|
93
|
-
sentAt?: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
88
|
/** Whether a frozen invoice has fallen out of date, and by how much. */
|
|
97
89
|
export interface InvoiceDrift {
|
|
98
90
|
errandCount: number;
|
|
@@ -127,7 +119,6 @@ export interface Invoice {
|
|
|
127
119
|
* Document lifecycle, kept separate from `status`: an invoice can be
|
|
128
120
|
* part-paid and viewed, or paid and never opened.
|
|
129
121
|
*/
|
|
130
|
-
sentAt?: string;
|
|
131
122
|
firstViewedAt?: string;
|
|
132
123
|
lastViewedAt?: string;
|
|
133
124
|
viewCount?: number;
|