@mydoormot/app-types 2.0.3 → 2.0.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@2.0.2 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@2.0.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 @@ CLI tsup v7.3.0
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.cjs 17.59 KB
12
- CJS ⚡️ Build success in 50ms
13
11
  ESM dist/index.js 14.62 KB
14
- ESM ⚡️ Build success in 50ms
12
+ ESM ⚡️ Build success in 63ms
13
+ CJS dist/index.cjs 17.59 KB
14
+ CJS ⚡️ Build success in 63ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 661ms
17
- DTS dist/index.d.ts 49.84 KB
18
- DTS dist/index.d.cts 49.84 KB
16
+ DTS ⚡️ Build success in 868ms
17
+ DTS dist/index.d.ts 49.96 KB
18
+ DTS dist/index.d.cts 49.96 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated payout
8
+
3
9
  ## 2.0.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -812,7 +812,11 @@ interface RiderPayout {
812
812
  id: string;
813
813
  riderId: string;
814
814
  businessId: string;
815
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
815
+ /**
816
+ * The range the operator picked. No cadence accompanies it: payroll is run
817
+ * from a date-range picker, so every period is an arbitrary range and a
818
+ * cadence field could only restate the dates or contradict them.
819
+ */
816
820
  periodStart: Date;
817
821
  periodEnd: Date;
818
822
  /** Errands counted toward `grossEarnings`. */
@@ -855,7 +859,6 @@ interface RiderPayoutPreviewItem {
855
859
  existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
856
860
  }
857
861
  interface RiderPayoutPreview {
858
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
859
862
  periodStart: Date;
860
863
  periodEnd: Date;
861
864
  periodLabel: string;
package/dist/index.d.ts CHANGED
@@ -812,7 +812,11 @@ interface RiderPayout {
812
812
  id: string;
813
813
  riderId: string;
814
814
  businessId: string;
815
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
815
+ /**
816
+ * The range the operator picked. No cadence accompanies it: payroll is run
817
+ * from a date-range picker, so every period is an arbitrary range and a
818
+ * cadence field could only restate the dates or contradict them.
819
+ */
816
820
  periodStart: Date;
817
821
  periodEnd: Date;
818
822
  /** Errands counted toward `grossEarnings`. */
@@ -855,7 +859,6 @@ interface RiderPayoutPreviewItem {
855
859
  existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
856
860
  }
857
861
  interface RiderPayoutPreview {
858
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
859
862
  periodStart: Date;
860
863
  periodEnd: Date;
861
864
  periodLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/rider.ts CHANGED
@@ -164,7 +164,11 @@ export interface RiderPayout {
164
164
  riderId: string;
165
165
  businessId: string;
166
166
 
167
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
167
+ /**
168
+ * The range the operator picked. No cadence accompanies it: payroll is run
169
+ * from a date-range picker, so every period is an arbitrary range and a
170
+ * cadence field could only restate the dates or contradict them.
171
+ */
168
172
  periodStart: Date;
169
173
  periodEnd: Date;
170
174
 
@@ -215,7 +219,6 @@ export interface RiderPayoutPreviewItem {
215
219
  }
216
220
 
217
221
  export interface RiderPayoutPreview {
218
- periodType: PayoutPeriodType | `${PayoutPeriodType}`;
219
222
  periodStart: Date;
220
223
  periodEnd: Date;
221
224
  periodLabel: string;